2017-04-03 63 views
0

我試圖在Ubuntu 16.04 LTS上安裝tensorpack。tensorpack的安裝失敗

$ sudo -H pip install --upgrade tensorpack 
Collecting tensorpack 
    Using cached tensorpack-0.1.7-py2.py3-none-any.whl 
Collecting tabulate (from tensorpack) 
    Using cached tabulate-0.7.7-py2.py3-none-any.whl 
Collecting termcolor (from tensorpack) 
    Downloading termcolor-1.1.0.tar.gz 
Requirement already up-to-date: six in /usr/lib/python3/dist-packages (from tensorpack) 
Requirement already up-to-date: numpy in /usr/local/lib/python3.5/dist-packages (from tensorpack) 
Collecting subprocess32 (from tensorpack) 
    Using cached subprocess32-3.2.7.tar.gz 
    Complete output from command python setup.py egg_info: 
    This backport is for Python 2.x only. 

    ---------------------------------------- 
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3vdwf8jw/subprocess32/ 

你知道什麼可能導致此錯誤嗎?


編輯:與pip3它表現相同。

$ sudo -H pip3 install --upgrade tensorpack 
Collecting tensorpack 
    Using cached tensorpack-0.1.7-py2.py3-none-any.whl 
Collecting msgpack-numpy (from tensorpack) 
    Using cached msgpack_numpy-0.3.9-py2.py3-none-any.whl 
Collecting pyzmq (from tensorpack) 
    Using cached pyzmq-16.0.2-cp35-cp35m-manylinux1_x86_64.whl 
Collecting functools32 (from tensorpack) 
    Using cached functools32-3.2.3-2.zip 
    Complete output from command python setup.py egg_info: 
    This backport is for Python 2.7 only. 

    ---------------------------------------- 
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ut16f9e3/functools32/ 
+0

看起來像它試圖在python3環境中安裝python2庫:'這是下行移植的Python 2.x的only.'有你試過在命令行中明確調用'pip3'? –

回答

1

Tensorpack爲我工作,而每個必要的是

  1. 使用虛擬環境

    的virtualenv tensorpack

  2. 其次更新PIP

    PIP安裝 - - 升級點

  3. 最後沒有使用 「命令」

    PIP安裝tensorpack

+0

這是一種解決方法,而非解決方案,但足夠好! –

+0

有什麼進展? .. –

+0

那麼,我能夠得到它在虛擬環境中工作,謝謝:) –