我希望能夠訪問所有我的網站包從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