python --version
conda info --env
conda activate xxx
pip uninstall imbalanced-learn
pip install imbalanced-learn==0.8.0
$ pip show <package-name>
give the result as follows :
$ pip show pip
Name: pip
Version: 18.1
Summary: The PyPA recommended tool for installing Python packages.
Home-page: [https://pip.pypa.io/](https://pip.pypa.io/)
Author: The pip developers
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python2.7/site-packages
Requires:
Required-by:
pip list
give the result as follows
Package Version
----------------------- ---------
absl-py 0.15.0
astunparse 1.6.3
cachetools 4.2.4
certifi 2021.10.8
charset-normalizer 2.0.9
click 8.0.4
colorama 0.4.4
cx-Oracle 8.3.0
cycler 0.11.0
dataclasses 0.8
et-xmlfile 1.1.0
Flask 2.0.3
It can be used pip install package_name== To see which versions of the package .
pip install panda==
Collecting panda==
Could not find a version that satisfies the requirement panda== (from versions: 0.1.5.macosx-10.9-x86_64, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.3.1)
No matching distribution found for panda==
pip freeze >requirements.txt
The result is to export all packages and versions of the environment to requirements.txt In file ,
If you use conda It seems to be the following command , Never used
conda list -e > requirements.txt
pip install -r requirements.txt
$ pip check
No broken requirements found.
If there is a problem, the results are as follows
$ pip check
pyramid 1.5.2 requires WebOb, which is not installed.
$ pip check
pyramid 1.5.2 has requirement WebOb>=1.3.1, but you have WebOb 0.8.