1.创建虚拟环境
conda create -n tensorflow python=3.6
可以指定python版本
2.删除已经安装的虚拟环境
conda remove -n tensorflow -all
3.查看已经安装的虚拟环境
conda env list
4.激活虚拟环境
activate myenv
5.退出虚拟环境
conda deactivate
6.在环境中安装必要的包
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade tensorflow-gpu==1.8
pip install pillow
pip install lxml
pip install jupyter
pip install matplotlib
pip install pandas
7.删除某个包
pip uninstall name
8.查看某个环境中安装的所有包
conda list
pip list