码迷,mamicode.com
首页 > 其他好文 > 详细

用conda创建一个tensorflow 虚拟环境

时间:2017-07-12 16:17:43      阅读:1154      评论:0      收藏:0      [点我收藏+]

标签:ext   res   cto   bsp   stack   http   dem   github   虚拟环境   

创建your——user——name = tensorflow 的虚拟环境

xinpingdeMacBook-Pro:~ xinpingbao$ conda create -n tensorflow python=2.7 anaconda

激活

source activate tensorflow

失活:

source deactivate

查看当前的版本:

conda info -e

---------------------------  参考url ----------------------------------

https://stackoverflow.com/questions/30170468/how-to-run-spyder-in-virtual-environment

https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/

 

There is an option to create virtual environments in Anaconda with required Python version. 

conda create -n myenv python=3.4 anaconda

This will create virtual environment to virtualenv. To activate it :

source activate myenv   # (in linux)
activate myenv          # (in windows - note that you should be in your c:\anaconda2 directory)

To check the current environment has been changed:

conda info -e

And now to run Spyder with Python 3.4 just type:

spyder

 

 

用conda创建一个tensorflow 虚拟环境

标签:ext   res   cto   bsp   stack   http   dem   github   虚拟环境   

原文地址:http://www.cnblogs.com/xinping-study/p/7155905.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!