python3 -m pip install -r requirements.txt # Or 'pip3' install...
The above install step has problems with cmake. I tried setting environment variables, but still get the same result.
I am running this from gitbash in the directory I cloned:
I get the same error from VSCode. My cmake install is new (never used).
The path to CMakeOutput.log does not exist (so I couldn't check it).
pip3 install -r requirements.txt
Collecting Django<3.3,>=3.2
Using cached Django-3.2.16-py3-none-any.whl (7.9 MB)
Requirement already satisfied: Wand<0.7,>=0.6.6 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 2)) (0.6.11)
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.tar.gz (37.9 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pdfminer.six==20200726
Using cached pdfminer.six-20200726-py3-none-any.whl (5.6 MB)
Collecting pygraphviz==1.7
Using cached pygraphviz-1.7.zip (118 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting python-igraph==0.9.6
Using cached python-igraph-0.9.6.tar.gz (3.6 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: uc-micro-py in c:\users\admin\appdata\local\programs\python\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 kiwisolver>=1.0.1
Using cached kiwisolver-1.4.4-cp310-cp310-win_amd64.whl (55 kB)
Requirement already satisfied: numpy>=1.15 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib==3.3.4->-r requirements.txt (line 6)) (1.23.4)
Collecting pillow>=6.2.0
Using cached Pillow-9.4.0-cp310-cp310-win_amd64.whl (2.5 MB)
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)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from matplotlib==3.3.4->-r requirements.txt (line 6)) (2.8.2)
Requirement already satisfied: sortedcontainers in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from pdfminer.six==20200726->-r requirements.txt (line 7)) (2.4.0)
Collecting chardet
Using cached chardet-5.1.0-py3-none-any.whl (199 kB)
Collecting cryptography
Using cached cryptography-39.0.0-cp36-abi3-win_amd64.whl (2.5 MB)
Requirement already satisfied: texttable>=1.6.2 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from python-igraph==0.9.6->-r requirements.txt (line 9)) (1.6.7)
Requirement already satisfied: asgiref<4,>=3.3.2 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from Django<3.3,>=3.2->-r requirements.txt (line 1)) (3.5.2)
Requirement already satisfied: pytz in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from Django<3.3,>=3.2->-r requirements.txt (line 1)) (2022.6)
Requirement already satisfied: sqlparse>=0.2.2 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from Django<3.3,>=3.2->-r requirements.txt (line 1)) (0.4.3)
Requirement already satisfied: six>=1.5 in c:\users\admin\appdata\local\programs\python\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.1-cp310-cp310-win_amd64.whl (179 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Installing collected packages: python-igraph, pyparsing, pygraphviz, pycparser, pillow, linkify-it-py, kiwisolver, Django, cycler, chardet, attrs, matplotlib, markdown-it-py, cffi, cryptography, pdfminer.six
DEPRECATION: python-igraph is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
Running setup.py install for python-igraph: started
Running setup.py install for python-igraph: finished with status 'error'
error: subprocess-exited-with-error
Running setup.py install for python-igraph did not run successfully.
exit code: 1
[67 lines of output]
running install
C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\igraph
copying src\igraph\clustering.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\configuration.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\cut.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\datatypes.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\formula.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\layout.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\matching.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\operators.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\sparse_matrix.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\statistics.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\summary.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\utils.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph\version.py -> build\lib.win-amd64-cpython-310\igraph
copying src\igraph_init_.py -> build\lib.win-amd64-cpython-310\igraph
creating build\lib.win-amd64-cpython-310\igraph\app
copying src\igraph\app\shell.py -> build\lib.win-amd64-cpython-310\igraph\app
copying src\igraph\app_init_.py -> build\lib.win-amd64-cpython-310\igraph\app
creating build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\baseclasses.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\colors.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\coord.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\edge.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\graph.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\metamagic.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\shapes.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\text.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\utils.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing\vertex.py -> build\lib.win-amd64-cpython-310\igraph\drawing
copying src\igraph\drawing_init_.py -> build\lib.win-amd64-cpython-310\igraph\drawing
creating build\lib.win-amd64-cpython-310\igraph\remote
copying src\igraph\remote\gephi.py -> build\lib.win-amd64-cpython-310\igraph\remote
copying src\igraph\remote_init_.py -> build\lib.win-amd64-cpython-310\igraph\remote
running build_ext
running build_c_core
-- Building for: NMake Makefiles
-- Setting build type to 'Release' as none was specified.
-- Version number: 0.9.4
CMake Error at CMakeLists.txt:30 (project):
Running
'nmake' '-?'
failed with:
The system cannot find the file specified
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/admin/AppData/Local/Temp/pip-install-gyfbttfz/python-igraph_95190f8b1e4d4b949adde94d9c65927d/vendor/build/igraph/CMakeFiles/CMakeOutput.log".
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
Configuring build...
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