创建python2.7版本虚拟环境,并安装tensorflow1.8.0版本

1.创建虚拟环境(env_name是命名的虚拟环境名字)

conda create -n env_name python=2.7   

2.激活虚拟环境

source activate env_name

3.在虚拟环境中安装1.8.0版本的tensorflow

conda install tensorflow==1.8.0

4.退出虚拟环境 

source deactivate

 

5、删除虚拟环境

conda remove -n env_name --all

参考资料:

https://blog.csdn.net/mrwxh/article/details/80387243

https://blog.csdn.net/lyy14011305/article/details/59500819

https://blog.csdn.net/u012754806/article/details/77600322

https://blog.csdn.net/familyshizhouna/article/details/77249110

猜你喜欢

转载自blog.csdn.net/u_7890/article/details/86356936