【问题标题】:pydot installation with pip3 issue带有 pip3 问题的 pydot 安装
【发布时间】: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。

【问题讨论】:

标签: python-3.x pip pydot


【解决方案1】:

python3 的两种可能解决方案

pip install pydot3

pip install pydotplus

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-28
    • 2019-04-17
    相关资源
    最近更新 更多