Pyton - 包管理Anaconda 和 PIP
Posted yousoluck
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Pyton - 包管理Anaconda 和 PIP相关的知识,希望对你有一定的参考价值。
Anaconda
- Common Commands
-
condainfo & condaupdate conda
-
condainstall/update scikit-learn
-
condacreate --name/-n py35 python=3.5
-
activate/deactivate py35/base
-
condaenv list
-
condalist/search
-
condalist -e > requirements.txt
-
condainstall --yes --file requirements.txt
-
PYPI
- Common Commands
- pip install scikit-learn
- pip uninstall scikit-learn
- pip --version/-V
- pip list
- pip install scikit-learn-1.0-py2.py3-none-any.whl
- pip show --files scikit-learn
- pip install --upgrade/-U scikit-learn
- .python -m pip install scikit-learn
- python -m pip install --upgrade pip
Mixed PIP & Conda
- Conda first, then PIP
- conda isolate the pip,be careful with the sudopip
-
Rebuild the conda Env if needed
-
Save the conda andpip requirement files
Refer to
以上是关于Pyton - 包管理Anaconda 和 PIP的主要内容,如果未能解决你的问题,请参考以下文章