Jump to content

Python doesnt want to compile

 Wenn tryng to install pygraphviz i get this error



 

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

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [47 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.8
      creating build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\agraph.py -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\graphviz.py -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\scraper.py -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\testing.py -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\__init__.py -> build\lib.win-amd64-3.8\pygraphviz
      creating build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_attribute_defaults.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_clear.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_close.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_drawing.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_edge_attributes.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_graph.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_html.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_layout.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_node_attributes.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_readwrite.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_repr_mimebundle.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_scraper.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_string.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_subgraph.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_unicode.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\__init__.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      running egg_info
      writing pygraphviz.egg-info\PKG-INFO
      writing dependency_links to pygraphviz.egg-info\dependency_links.txt
      writing top-level names to pygraphviz.egg-info\top_level.txt
      reading manifest file 'pygraphviz.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.png' under directory 'doc'
      warning: no files found matching '*.txt' under directory 'doc'
      warning: no files found matching '*.css' under directory 'doc'
      warning: no previously-included files matching '*~' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '.svn' found anywhere in distribution
      no previously-included directories found matching 'doc\build'
      writing manifest file 'pygraphviz.egg-info\SOURCES.txt'
      copying pygraphviz\graphviz.i -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\graphviz_wrap.c -> build\lib.win-amd64-3.8\pygraphviz
      running build_ext
      building 'pygraphviz._graphviz' extension
      error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
      [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
Failed to build pygraphviz
Installing collected packages: pygraphviz, pycparser, pillow, numpy, linkify-it-py, kiwisolver, cycler, chardet, attrs, asgiref, matplotlib, markdown-it-py, Django, cffi, cryptography, pdfminer.six
  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
  ╰─> [47 lines of output]
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.8
      creating build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\agraph.py -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\graphviz.py -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\scraper.py -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\testing.py -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\__init__.py -> build\lib.win-amd64-3.8\pygraphviz
      creating build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_attribute_defaults.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_clear.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_close.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_drawing.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_edge_attributes.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_graph.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_html.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_layout.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_node_attributes.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_readwrite.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_repr_mimebundle.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_scraper.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_string.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_subgraph.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\test_unicode.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      copying pygraphviz\tests\__init__.py -> build\lib.win-amd64-3.8\pygraphviz\tests
      running egg_info
      writing pygraphviz.egg-info\PKG-INFO
      writing dependency_links to pygraphviz.egg-info\dependency_links.txt
      writing top-level names to pygraphviz.egg-info\top_level.txt
      reading manifest file 'pygraphviz.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.png' under directory 'doc'
      warning: no files found matching '*.txt' under directory 'doc'
      warning: no files found matching '*.css' under directory 'doc'
      warning: no previously-included files matching '*~' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '.svn' found anywhere in distribution
      no previously-included directories found matching 'doc\build'
      writing manifest file 'pygraphviz.egg-info\SOURCES.txt'
      copying pygraphviz\graphviz.i -> build\lib.win-amd64-3.8\pygraphviz
      copying pygraphviz\graphviz_wrap.c -> build\lib.win-amd64-3.8\pygraphviz
      running build_ext
      building 'pygraphviz._graphviz' extension
      error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pygraphviz

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

 

 

i have  Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.28.29325 installed and am running python 3.8.5.

The os is Microsoft Windows web server 2008 R2

 

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

why are you using an outdated version of python?

 

Edit: 3.8 is from like 3 years ago

Link to comment
Share on other sites

Link to post
Share on other sites

Try

  1. Upgrading setuptools
  2. Forcing a binary install
  3. (Re)installing the Build Tools for Visual Studio first, or maybe there's some related path not set correctly and it can't find it. [Edit] seems like you have the right version installed, so maybe more path stuff, but a reinstall never hurt me with these MSVC++ things.
52 minutes ago, TheBean said:

why are you using an outdated version of python?

 

Edit: 3.8 is from like 3 years ago

3.8 is still active and supported, though at a newer version than OP has.

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
Share on other sites

Link to post
Share on other sites

10 hours ago, tikker said:

Try

  1. Upgrading setuptools
  2. Forcing a binary install
  3. (Re)installing the Build Tools for Visual Studio first, or maybe there's some related path not set correctly and it can't find it. [Edit] seems like you have the right version installed, so maybe more path stuff, but a reinstall never hurt me with these MSVC++ things.

3.8 is still active and supported, though at a newer version than OP has.

smoll problem id kwhere the install for the buildtool is

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

11 hours ago, TheBean said:

why are you using an outdated version of python?

 

Edit: 3.8 is from like 3 years ago

couldent be boughtered to test every version of python to see if ti works, plus its better the python 2.7 wich i was using befor

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, FuchsFuchs1 said:

smoll problem id kwhere the install for the buildtool is

It's at the bottom of the download page the error links to after you expand the "Tools for Visual Studio" item.

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
Share on other sites

Link to post
Share on other sites

15 hours ago, TheBean said:

why are you using an outdated version of python?

 

Edit: 3.8 is from like 3 years ago

ever went to download python, it clearly says Note that Python 3.9+ cannot be used on Windows 7 or earlier. 

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, tikker said:

It's at the bottom of the download page the error links to after you expand the "Tools for Visual Studio" item.

no like my version, im pretty sure i got it from updates

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

26 minutes ago, FuchsFuchs1 said:

no like my version, im pretty sure i got it from updates

The package may want a version newer than 2015-2019. You can also try installing older versions of pygraphviz, or try and see if there's a binary wheel available by telling pip to only install binaries.

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, tikker said:

The package may want a version newer than 2015-2019. You can also try installing older versions of pygraphviz, or try and see if there's a binary wheel available by telling pip to only install binaries.

1.9 is latest and the orinal code wanted 1.7

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, FuchsFuchs1 said:

1.9 is latest and the orinal code wanted 1.7

Sure, so did you try installing 1.7 instead of 1.9, for example?

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
Share on other sites

Link to post
Share on other sites

39 minutes ago, tikker said:

Sure, so did you try installing 1.7 instead of 1.9, for example?

i did that befor tryng 1.9

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

6 hours ago, FuchsFuchs1 said:

ever went to download python, it clearly says Note that Python 3.9+ cannot be used on Windows 7 or earlier. 

well then another question is why you're using win7? its old, and not supported by microsoft anymore. unless this is for a business computer/software, theres no reason to continue using win7. 

Link to comment
Share on other sites

Link to post
Share on other sites

14 hours ago, TheBean said:

well then another question is why you're using win7? its old, and not supported by microsoft anymore. unless this is for a business computer/software, theres no reason to continue using win7. 

im using windows server 2008 R2. using anything newer would not be efficiant on that spesific hardware. plus i alredy stated what os im using in the original post

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

So tried installing it on Windows server 2019 Standart and it still didnt work. i was now running python 3.10.5

On 6/19/2022 at 6:54 PM, TheBean said:

well then another question is why you're using win7? its old, and not supported by microsoft anymore. unless this is for a business computer/software, theres no reason to continue using win7. 

 

On 6/19/2022 at 10:45 AM, tikker said:

It's at the bottom of the download page the error links to after you expand the "Tools for Visual Studio" item.

 

On 6/18/2022 at 8:54 PM, JogerJ said:

 

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

On 6/19/2022 at 12:00 PM, FuchsFuchs1 said:

ever went to download python, it clearly says Note that Python 3.9+ cannot be used on Windows 7 or earlier. 

Windows server 2019 is on par with Windows 10. You can give python3.9 a try. You could also try python3.10 but make sure your dependencies support it. Anyways newer versions usually are backwards compatible but usually untested/unguaranteed.

If you found my answer to your post helpful, be sure to react or mark it as solution 😄

Link to comment
Share on other sites

Link to post
Share on other sites

21 hours ago, JogerJ said:

Windows server 2019 is on par with Windows 10. You can give python3.9 a try. You could also try python3.10 but make sure your dependencies support it. Anyways newer versions usually are backwards compatible but usually untested/unguaranteed.

read the post above the one you made. it doesnt work

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

After some progress i got this




C:\websites\HostForums#2-2>pip install -r requirements.txt
Collecting Django<3.3,>=3.2
  Using cached Django-3.2.13-py3-none-any.whl (7.9 MB)
Requirement already satisfied: Wand<0.7,>=0.6.6 in c:\program files\python310\lib\site-packages (from -r requirements.txt (line 2)) (0.6.7)
Collecting linkify-it-py==1.0
  Using cached linkify_it_py-1.0.0-py3-none-any.whl (19 kB)
Collecting markdown-it-py==1.1.0
  Using cached markdown_it_py-1.1.0-py3-none-any.whl (83 kB)
Collecting matplotlib==3.3.4
  Using cached matplotlib-3.3.4-cp310-cp310-win_amd64.whl
Collecting pdfminer.six==20200726
  Using cached pdfminer.six-20200726-py3-none-any.whl (5.6 MB)
Collecting pygraphviz==1.9
  Using cached pygraphviz-1.9.zip (119 kB)
  Preparing metadata (setup.py) ... done
Collecting python-igraph==0.9.6
  Using cached python-igraph-0.9.6.tar.gz (3.6 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: uc-micro-py in c:\program files\python310\lib\site-packages (from linkify-it-py==1.0->-r requirements.txt (line 3)) (1.0.1)
Collecting attrs<22,>=19
  Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting cycler>=0.10
  Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting kiwisolver>=1.0.1
  Using cached kiwisolver-1.4.3-cp310-cp310-win_amd64.whl (55 kB)
Collecting pillow>=6.2.0
  Using cached Pillow-9.1.1-cp310-cp310-win_amd64.whl (3.3 MB)
Collecting python-dateutil>=2.1
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting numpy>=1.15
  Using cached numpy-1.22.4-cp310-cp310-win_amd64.whl (14.7 MB)
Collecting cryptography
  Using cached cryptography-37.0.3-cp36-abi3-win_amd64.whl (2.4 MB)
Collecting chardet
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Requirement already satisfied: sortedcontainers in c:\program files\python310\lib\site-packages (from pdfminer.six==20200726->-r requirements.txt (line 7)) (2.4.0)
Requirement already satisfied: texttable>=1.6.2 in c:\program files\python310\lib\site-packages (from python-igraph==0.9.6->-r requirements.txt (line 9)) (1.6.4)
Requirement already satisfied: pytz in c:\program files\python310\lib\site-packages (from Django<3.3,>=3.2->-r requirements.txt (line 1)) (2022.1)
Collecting asgiref<4,>=3.3.2
  Using cached asgiref-3.5.2-py3-none-any.whl (22 kB)
Requirement already satisfied: sqlparse>=0.2.2 in c:\program files\python310\lib\site-packages (from Django<3.3,>=3.2->-r requirements.txt (line 1)) (0.4.2)
Requirement already satisfied: six>=1.5 in c:\program files\python310\lib\site-packages (from python-dateutil>=2.1->matplotlib==3.3.4->-r requirements.txt (line 6)) (1.16.0)
Collecting cffi>=1.12
  Using cached cffi-1.15.0-cp310-cp310-win_amd64.whl (180 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: pygraphviz, python-igraph
  Building wheel for pygraphviz (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\pygraphviz
      copying pygraphviz\agraph.py -> build\lib.win-amd64-3.10\pygraphviz
      copying pygraphviz\graphviz.py -> build\lib.win-amd64-3.10\pygraphviz
      copying pygraphviz\scraper.py -> build\lib.win-amd64-3.10\pygraphviz
      copying pygraphviz\testing.py -> build\lib.win-amd64-3.10\pygraphviz
      copying pygraphviz\__init__.py -> build\lib.win-amd64-3.10\pygraphviz
      creating build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_attribute_defaults.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_clear.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_close.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_drawing.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_edge_attributes.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_graph.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_html.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_layout.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_node_attributes.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_readwrite.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_repr_mimebundle.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_scraper.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_string.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_subgraph.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\test_unicode.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      copying pygraphviz\tests\__init__.py -> build\lib.win-amd64-3.10\pygraphviz\tests
      running egg_info
      writing pygraphviz.egg-info\PKG-INFO
      writing dependency_links to pygraphviz.egg-info\dependency_links.txt
      writing top-level names to pygraphviz.egg-info\top_level.txt
      reading manifest file 'pygraphviz.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.png' under directory 'doc'
      warning: no files found matching '*.txt' under directory 'doc'
      warning: no files found matching '*.css' under directory 'doc'
      warning: no previously-included files matching '*~' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '.svn' found anywhere in distribution
      no previously-included directories found matching 'doc\build'
      adding license file 'LICENSE'
      writing manifest file 'pygraphviz.egg-info\SOURCES.txt'
      copying pygraphviz\graphviz.i -> build\lib.win-amd64-3.10\pygraphviz
      copying pygraphviz\graphviz_wrap.c -> build\lib.win-amd64-3.10\pygraphviz
      running build_ext
      building 'pygraphviz._graphviz' extension
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\pygraphviz
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Program Files\Python310\include -IC:\Program Files\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcpygraphviz/graphviz_wrap.c /Fobuild\temp.win-amd64-3.10\Release\pygraphviz/graphviz_wrap.obj
      graphviz_wrap.c
      pygraphviz/graphviz_wrap.c(2711): fatal error C1083: Cannot open include file: 'graphviz/cgraph.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [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
  Building wheel for python-igraph (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\igraph
      copying src\igraph\clustering.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\configuration.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\cut.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\datatypes.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\formula.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\layout.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\matching.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\operators.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\sparse_matrix.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\statistics.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\summary.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\utils.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\version.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\__init__.py -> build\lib.win-amd64-3.10\igraph
      creating build\lib.win-amd64-3.10\igraph\app
      copying src\igraph\app\shell.py -> build\lib.win-amd64-3.10\igraph\app
      copying src\igraph\app\__init__.py -> build\lib.win-amd64-3.10\igraph\app
      creating build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\baseclasses.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\colors.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\coord.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\edge.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\graph.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\metamagic.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\shapes.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\text.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\utils.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\vertex.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\__init__.py -> build\lib.win-amd64-3.10\igraph\drawing
      creating build\lib.win-amd64-3.10\igraph\remote
      copying src\igraph\remote\gephi.py -> build\lib.win-amd64-3.10\igraph\remote
      copying src\igraph\remote\__init__.py -> build\lib.win-amd64-3.10\igraph\remote
      running build_ext
      running build_c_core
      We are going to build the C core of igraph.
        Source folder: vendor\source\igraph
        Build folder: vendor\build\igraph
        Install folder: vendor\install\igraph

      igraph uses CMake as the build system. You need to install CMake before compiling igraph.
      Build failed for the C core of igraph.

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for python-igraph
  Running setup.py clean for python-igraph
Failed to build pygraphviz python-igraph
Installing collected packages: python-igraph, python-dateutil, pyparsing, pygraphviz, pycparser, pillow, numpy, linkify-it-py, kiwisolver, cycler, chardet, attrs, asgiref, matplotlib, markdown-it-py, Django, cffi, cryptography, pdfminer.six
  Running setup.py install for python-igraph ... error
  error: subprocess-exited-with-error

  × Running setup.py install for python-igraph did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\igraph
      copying src\igraph\clustering.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\configuration.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\cut.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\datatypes.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\formula.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\layout.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\matching.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\operators.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\sparse_matrix.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\statistics.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\summary.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\utils.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\version.py -> build\lib.win-amd64-3.10\igraph
      copying src\igraph\__init__.py -> build\lib.win-amd64-3.10\igraph
      creating build\lib.win-amd64-3.10\igraph\app
      copying src\igraph\app\shell.py -> build\lib.win-amd64-3.10\igraph\app
      copying src\igraph\app\__init__.py -> build\lib.win-amd64-3.10\igraph\app
      creating build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\baseclasses.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\colors.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\coord.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\edge.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\graph.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\metamagic.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\shapes.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\text.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\utils.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\vertex.py -> build\lib.win-amd64-3.10\igraph\drawing
      copying src\igraph\drawing\__init__.py -> build\lib.win-amd64-3.10\igraph\drawing
      creating build\lib.win-amd64-3.10\igraph\remote
      copying src\igraph\remote\gephi.py -> build\lib.win-amd64-3.10\igraph\remote
      copying src\igraph\remote\__init__.py -> build\lib.win-amd64-3.10\igraph\remote
      running build_ext
      running build_c_core
      We are going to build the C core of igraph.
        Source folder: vendor\source\igraph
        Build folder: vendor\build\igraph
        Install folder: vendor\install\igraph

      igraph uses CMake as the build system. You need to install CMake before compiling igraph.
      Build failed for the C core of igraph.

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> python-igraph

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

  • 3 weeks later...

1. download and install graphviz download link

2. add graphviz to env path, it should be located in "c:\Program Files(x86)\Graphviz_YOUR_VERSION\bin

 

if you have chocolatey installed you can skip the first 2 steps and use the command 

choco install graphviz

3. go to your folder and reactivate your venv from the commandline

4. install cmake and graphviz

pip install --global-option=build_ext `
            --global-option="-IC:\Program Files\Graphviz\include" `
            --global-option="-LC:\Program Files\Graphviz\lib" `
            pygraphviz cmake

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 6/18/2022 at 11:55 AM, TheBean said:

why are you using an outdated version of python?

 

Edit: 3.8 is from like 3 years ago

Often the byproduct of many internet tutorials

I am a fool

Link to comment
Share on other sites

Link to post
Share on other sites

On 6/18/2022 at 9:16 PM, FuchsFuchs1 said:

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio":

Guys are you dumb? or am I?

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...
On 7/21/2022 at 10:08 PM, Wictorian said:

Guys are you dumb? or am I?

python is

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

On 7/16/2022 at 6:39 AM, AdjectiveMoose said:

Often the byproduct of many internet tutorials

Nope. Python doesnt let you install newer versions on old windows.

Dual X5690 my beloved.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×