anaconda source exchange and create a virtual environment

0x01: change the source, followed by about two orders input

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

 

0x02: create a virtual environment

conda create -n tensorflow python=3.5    // tensorflow for the name of the virtual environment created after a specified python version

 

0x03: View virtual environment

And then under the root directory anaconda, there envs directory, create a virtual environment and then are stored here, including project and then pycharm the environment created using anaconda

 

 0x04: Start the virtual environment

Open the Anaconda prompt,

 

 Enter the name activate the virtual environment, you can enter the virtual environment

 

 0x05: switched virtual environment

Or activate the command, followed by the need to switch to a virtual environment name on the line

 

 0x06: View a list of virtual environments

Use conda info --envs or conda env list

 

 Reference article:

https://zhuanlan.zhihu.com/p/34730661

https://blog.csdn.net/ITLearnHall/article/details/81708148

*************** short step a thousand miles. ***************

Guess you like

Origin www.cnblogs.com/liangxiyang/p/11583689.html