【发布时间】:2016-04-03 22:31:31
【问题描述】:
我正在尝试安装 pydot。我得到以下交互:
sudo -H pip3 install pydot
Collecting pydot
Using cached pydot-1.0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-ykyu42cx/pydot/setup.py", line 5
except ImportError, excp:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ykyu42cx/pydot
但我尝试成功:
sudo -H pip3 install pydot2
我怀疑这是期望的行为。
如果可能,请告知如何使用 pip3 安装 pydot。
【问题讨论】:
-
PS:我已经咨询过了,stackoverflow.com/questions/32158889/…
标签: python-3.x pip pydot