1.anaconda下载并安装
https://www.anaconda.com/download/
设置环境变量:
此电脑->右键选择属性->高级系统设置->环境变量->系统变量->path
C:\ProgramData\Anaconda3\Scripts
此时python pip及conda命令均可以使用。
2.git下载并安装
https://www.anaconda.com/download/
3.关于anaconda安装各个python版本及切换问题:
比如想要安装python2.7 --> conda create --name python27 python=2.7
python版本的切换命令 --> activate python27 或 deactivate python27
4.查看虚拟环境:
conda info --envs
root@reed-virtual-machine:~# conda info --envs
# conda environments:
#
base * /root/anaconda3
python27 /root/anaconda3/envs/python27
python35 /root/anaconda3/envs/python35
tensorflow /root/anaconda3/envs/tensorflow
5.选择虚拟环境
Linux命令:
conda activate python35
root@reed-virtual-machine:~# conda activate python35
(python35) root@reed-virtual-machine:~#
Windows命令:
activate python36