question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install pydot for Python3 via pip

See original GitHub issue

pip3 install pydot returns

Collecting pydot
  Downloading 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 "/private/var/folders/35/xqrmy3y91wz2zzs0c33jl4m00000gn/T/pip-build-vtolqv73/pydot/setup.py", line 5
        except ImportError, excp:
                          ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/35/xqrmy3y91wz2zzs0c33jl4m00000gn/T/pip-build-vtolqv73/pydot

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
log0commented, Jan 25, 2016

TL;DR: pip3 install pydot3 / pip install pydot3

I found that this repro doesn’t work in Python 3.x and made a quick fix to be Python 3.x compatible and made it accessible via pip install.

1reaction
JWarmenhovencommented, Jan 8, 2016

That’s because the version on PyPi is not (yet) compatible with Python3. I see there is a pull request (#106) pending for Python 3.5 support.

Check out https://github.com/nlhepler/pydot for a Python3 compatible version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install pydot for Python3 via pip · Issue #110
I found that this repro doesn't work in Python 3.x and made a quick fix to be Python 3.x compatible and made it...
Read more >
python 3.x - pydot installation with pip3 issue
Two possible solutions for python3 pip install pydot3. or pip install pydotplus.
Read more >
How to install pydot Python library (2022) | Amit Thinks
In this video, learn how to install the pydot Python library. Pydot is an interface to Graphviz. Graphviz is open-source graph visualization ...
Read more >
How to install pydot and graphviz?
Because you use python 3, the right command would be pip3 install pydot graphviz . You can install pip3 using sudo apt install...
Read more >
Install — PyGraphviz 1.10 documentation
If you've installed Graphviz and pip is unable to find Graphviz, then you need to provide pip with the path(s) where it can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found