Как проверить, соответствуют ли пакеты состоянию «списка микромамбы» после того, как пип сломал его?Python

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Как проверить, соответствуют ли пакеты состоянию «списка микромамбы» после того, как пип сломал его?

Сообщение Anonymous »

Я пытался установить пакет (hyperfit), который доступен только через PyPI. Учитывая, что вся моя среда настроена с помощью micromamba, я установил все зависимости и попытался установить пакет. Ну, дело в том, что pip сломал мою среду, молча, не спрашивая меня. В частности, он удалил последнюю версию numpy, которая у меня была, и вернул ее к старой версии, не сообщая мне об этом. (См. фрагмент 1.)
Проблема в том, что когда я запустил список микромамбы, на версию, похоже, не повлиял пункт, как показано в примере ниже. .
numpy 2.0.2 py312h58c1407_0 conda-forge

Когда я проверил с помощью Python, он импортировал 1.2.6, а не 2.0.2, и мне пришлось принудительно переустановить numpy.
Дело в том, что у меня уже был подобный опыт с пипом. Я не знаю, сколько пакетов было изменено незаметно. Как проверить, все ли пакеты соответствуют списку micromamba, или хотя бы заставить micromamba переустановить все пакеты?
Фрагмент 1.
❯ pip install hyperfit 2024-11-06 18:32:20 CST
Collecting hyperfit
Using cached hyperfit-0.1.7-py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: numpy>=1.20.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from hyperfit) (2.0.2)
Requirement already satisfied: scipy>=1.6.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from hyperfit) (1.14.1)
Requirement already satisfied: zeus-mcmc>=2.3.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from hyperfit) (2.5.4)
Requirement already satisfied: pandas>=1.2.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from hyperfit) (2.2.2)
Requirement already satisfied: emcee>=3.0.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from hyperfit) (3.1.6)
Requirement already satisfied: snowline>=0.5.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from hyperfit) (0.6.3)
Requirement already satisfied: python-dateutil>=2.8.2 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from pandas>=1.2.0->hyperfit) (2.9.0)
Requirement already satisfied: pytz>=2020.1 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from pandas>=1.2.0->hyperfit) (2024.2)
Requirement already satisfied: tzdata>=2022.7 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from pandas>=1.2.0->hyperfit) (2024.2)
Requirement already satisfied: pypmc in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from snowline>=0.5.0->hyperfit) (1.2.2)
Requirement already satisfied: iminuit in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from snowline>=0.5.0->hyperfit) (2.30.1)
Requirement already satisfied: tqdm in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from zeus-mcmc>=2.3.0->hyperfit) (4.67.0)
Requirement already satisfied: setuptools in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from zeus-mcmc>=2.3.0->hyperfit) (75.3.0)
Requirement already satisfied: pytest in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from zeus-mcmc>=2.3.0->hyperfit) (8.3.3)
Requirement already satisfied: matplotlib in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from zeus-mcmc>=2.3.0->hyperfit) (3.9.2)
Requirement already satisfied: seaborn in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from zeus-mcmc>=2.3.0->hyperfit) (0.13.2)
Requirement already satisfied: scikit-learn in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from zeus-mcmc>=2.3.0->hyperfit) (1.5.2)
Requirement already satisfied: six>=1.5 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from python-dateutil>=2.8.2->pandas>=1.2.0->hyperfit) (1.16.0)
Requirement already satisfied: contourpy>=1.0.1 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from matplotlib->zeus-mcmc>=2.3.0->hyperfit) (1.3.0)
Requirement already satisfied: cycler>=0.10 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from matplotlib->zeus-mcmc>=2.3.0->hyperfit) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from matplotlib->zeus-mcmc>=2.3.0->hyperfit) (4.54.1)
Requirement already satisfied: kiwisolver>=1.3.1 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from matplotlib->zeus-mcmc>=2.3.0->hyperfit) (1.4.7)
Requirement already satisfied: packaging>=20.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from matplotlib->zeus-mcmc>=2.3.0->hyperfit) (24.1)
Requirement already satisfied: pillow>=8 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from matplotlib->zeus-mcmc>=2.3.0->hyperfit) (11.0.0)
Requirement already satisfied: pyparsing>=2.3.1 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from matplotlib->zeus-mcmc>=2.3.0->hyperfit) (3.2.0)
Collecting numpy>=1.20.0 (from hyperfit)
Downloading numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Requirement already satisfied: iniconfig in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from pytest->zeus-mcmc>=2.3.0->hyperfit) (2.0.0)
Requirement already satisfied: pluggy=1.5 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from pytest->zeus-mcmc>=2.3.0->hyperfit) (1.5.0)
Requirement already satisfied: joblib>=1.2.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from scikit-learn->zeus-mcmc>=2.3.0->hyperfit) (1.4.2)
Requirement already satisfied: threadpoolctl>=3.1.0 in /home/hcho/mamba/envs/py12/lib/python3.12/site-packages (from scikit-learn->zeus-mcmc>=2.3.0->hyperfit) (3.5.0)
Using cached hyperfit-0.1.7-py3-none-any.whl (245 kB)
Downloading numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.0/18.0 MB 93.5 MB/s eta 0:00:00
Installing collected packages: numpy, hyperfit
Attempting uninstall: numpy
Found existing installation: numpy 2.0.2
Uninstalling numpy-2.0.2:
Successfully uninstalled numpy-2.0.2
Successfully installed hyperfit-0.1.7 numpy-1.26.4


Подробнее здесь: https://stackoverflow.com/questions/791 ... p-broke-it
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»