Anaconda common commands summary

    Using Anaconda on the server often involves some commands, wandering between various tasks, sometimes forgetting some command lines, and often checking it on Baidu. It is better to make a summary and rub yourself against the traffic.

1. Check whether it is installed and the current version of conda: conda -V

2. Create a python virtual environment: conda create -n your_env_name python=XX (for example, conda create -n seg python=3.6, the name is seg, and the python version is 3.6)

3. Activation:

Linux:   source activate your_env_name (虚拟环境名称)

Windows:  activate your_env_name (虚拟环境名称)

4. Close the virtual environment:

Linux: source deactivate

Windows: deactivate

5. Delete the virtual environment

conda remove -n your_env_name(虚拟环境名称) --all

6. Check which packages are installed: conda list

7. Install the package: conda install XXX (XXX is the name of the package)

Guess you like

Origin blog.csdn.net/u013289254/article/details/109249140