Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Failed building wheel for pygraphviz | × Running setup.py install for pygraphviz did not run successfully. | error: legacy-install-failure #40

Open
Cyphercoda opened this issue Sep 13, 2022 · 6 comments

Comments

@Cyphercoda
Copy link

Building wheel for pygraphviz (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [58 lines of output]

  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.10 -c pygraphviz/graphviz_wrap.c -o build/temp.linux-x86_64-3.10/pygraphviz/graphviz_wrap.o
  pygraphviz/graphviz_wrap.c:2987:10: fatal error: graphviz/cgraph.h: No such file or directory
   2987 | #include "graphviz/cgraph.h"
        |          ^~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygraphviz
Running setup.py clean for pygraphviz

Running setup.py install for pygraphviz ... error
error: subprocess-exited-with-error

× Running setup.py install for pygraphviz did not run successfully.
│ exit code: 1
╰─> [63 lines of output]

@Cyphercoda
Copy link
Author

How to resolve these issues? its saying the issue with the package not with pip. Help please.

@ghost
Copy link

ghost commented Nov 16, 2022

I'm also getting the same error ...... someone pls reply

@dxa4481
Copy link

dxa4481 commented Jan 21, 2023

Installing this first did it for me:

apt-get install python3-dev graphviz libgraphviz-dev pkg-config -y

@matreurai
Copy link

Had the same issue before running @dxa4481 suggested command. @dxa4481 MVP. Thanks !

@Drjacky
Copy link

Drjacky commented Dec 18, 2023

python3-dev graphviz libgraphviz-dev pkg-config -y

Collecting graphviz
  Downloading graphviz-0.20.1-py3-none-any.whl (47 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.0/47.0 kB 1.3 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement libgraphviz-dev (from versions: none)
ERROR: No matching distribution found for libgraphviz-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants