tensorflow
我正在尝试安装virtualenv
安装后我收到 tensorflow 已安装的消息
/home/username/anaconda/lib/python2.7/site-packages
如何将它安装在虚拟环境的站点包中?
编辑
我正在使用 ubuntu 14.04.2 LTS
,以下是我执行的指令序列
sudo apt-get install python-pip python-dev python-virtualenv
virtualenv --system-site-packages ~/tensorflow
cd ~/tensorflow
source bin/activate
我遇到 tensorflow-0.5.0-py2-none-any.whl is not a supported wheel on this platform.
尝试执行时
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
所以我不得不遵循https://askubuntu.com/questions/695981/platform-not-supported-for-tensorflow-on-ubuntu-14-04-2的指示
所以执行后
python2.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
我得到了输出
Requirement already up-to-date: six>=1.10.0 in /home/sasidhar/anaconda/lib/python2.7/site-packages (from tensorflow==0.5.0)
Requirement already up-to-date: numpy>=1.9.2 in /home/sasidhar/anaconda/lib/python2.7/site-packages (from tensorflow==0.5.0)
Installing collected packages: tensorflow
Installing collected packages: tensorflow
Found existing installation: tensorflow 0.5.0
Uninstalling tensorflow-0.5.0:
Successfully uninstalled tensorflow-0.5.0
Successfully installed tensorflow-0.5.0
所以当我试图在虚拟环境中安装时,我想tensorflow
在虚拟环境中本地安装,而不是在/home/sasidhar/anaconda/lib/python2.7/site-packages