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

TensorFlow install

时间:2018-09-22 00:50:34      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:pip   making   osi   new   click   source   nal   Fix   exit   

 

Create a new virtual environment by choosing a Python interpreter and making a ./venv directory to hold it:

$ virtualenv --system-site-packages -p python3 ./venv

Activate the virtual environment using a shell-specific command:

 
$ source ./venv/bin/activate  # sh, bash, ksh, or zsh

When virtualenv is active, your shell prompt is prefixed with (venv).

Install packages within a virtual environment without affecting the host system setup. Start by upgrading pip:

 
$ pip install --upgrade pip

$ pip list  # show packages installed within the virtual environment

And to exit virtualenv later:

 
deactivate  # don‘t exit until you‘re done using TensorFlow

TensorFlow install

标签:pip   making   osi   new   click   source   nal   Fix   exit   

原文地址:https://www.cnblogs.com/guxuanqing/p/9688988.html

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