我希望能够访问所有我的网站包从Python中的另一个安装,所以我创造了这样一个虚拟的环境:无法升级使用PIP封装内的virtualenv
venv my_project --system-site-packages
我发现我的版本Keras的是过时的,所以从我的virtualenv中,我执行:
pip install keras
这没有问题的工作。我使用PIP版本9.0.1
我试图运行使用TensorFlow python程序,但是当我运行它,我得到一个错误:
ImportError: No module named tensorboard.plugins
我GOOGLE了四周,发现我需要升级TensorFlow。我尝试了几个命令:
(my_project/) [email protected]:~/spatial/zero_padded/powerlaw$ pip install tensorflow
上面给我一个'require already satisfied'的错误。
$ pip install --target=~/spatial/zero_padded/powerlaw/my_project/ --upgrade tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions:)
No matching distribution found for tensorflow
的which python
输出:
/user/spatial/zero_padded/powerlaw/my_project/bin/python
我觉得我PYTHONPATH
是这个第一行:
(my_project/) [email protected]:~/spatial/zero_padded/powerlaw/my_project$ python -c "import sys; print '\n'.join(sys.path)"
/user/spatial/zero_padded/powerlaw/my_project
/opt/enthought/canopy-1.5.1/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/python27.zip
/opt/enthought/canopy-1.5.1/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/python2.7
/opt/enthought/canopy-1.5.1/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/python2.7/plat-linux2
/opt/enthought/canopy-1.5.1/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/python2.7/lib-tk
/opt/enthought/canopy-1.5.1/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/python2.7/lib-old
/opt/enthought/canopy-1.5.1/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/python2.7/lib-dynload
/user/spatial/zero_padded/powerlaw/my_project/lib/python2.7/site-packages
/user/pkgs/enthought/canopy-1.5.1/lib/python2.7/site-packages
/user/pkgs/enthought/canopy-1.5.1/lib/python2.7/site-packages/PIL
/opt/enthought/canopy-1.5.1/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/python2.7/site-packages
如何升级TensorFlow我的virtualenv里面?
你能请张贴的'点子--freeze输出| grep -i tensorflow'从你的virtualenv? – 2ps