我正在尝试在Ubuntu16.04 LTS上安装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
它的行为相同。在
Tensorpack为我工作,但前提是
使用虚拟环境
virtualenv tensorpack
第二次更新pip
pip安装升级pip
最后不使用“sudo”
pip安装tensorpack
相关问题 更多 >
编程相关推荐