【Conda】 Use

Installation package
conda install package name

Install the specified version package
, plus the above = version number

If the update package
conda update package_name
does not work, it means that this is
pip install --upgrade package_name

Remove package
conda remove package name

Add mirror source
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda / pkgs / main /
conda config --set show_channel_urls yes
check
conda config --show channels

Specify the source installation
conda install -c / –channels package name (it's at the end!)

Activate failed bash: activate: No such file or directory
add path in front ~ / anaconda2 / bin / activate

Download to local installation
Put this installation package under the directory where anaconda stores the package ~ / anaconda3 / pkgs /
conda install --use-local name.tar.bz2

Create a virtual environment
conda create --name The name can be followed by the Python version environment (python = X)

Activate environment
f1-(don't go to another directory below) source anaconda2 / bin / activate name (then go to project directory
f2-conda activate name

?
Can I change the system when using pip? Isn't it manipulation of things in the virtual environment?
Yes. The reason is unknown.

pkgs takes up too much memory
conda clean -p # Delete useless packages
Refer-CB

Published 70 original articles · Likes0 · Visits 1705

Guess you like

Origin blog.csdn.net/weixin_44807751/article/details/104848876