Pygeos installation doesn't work with python 3.11
See original GitHub issuepip install pygeos
didnβt work with python 11 on Windows.
I tried pygeos version 0.10, 0.12, 0.13, all didnβt work.
Here is the error message
(ibrusenv) PS C:\Users\aniwax\Documents\GitHub\iBrusCoreSim> pip install pygeos==0.12
Collecting pygeos==0.12
Downloading pygeos-0.12.0.tar.gz (141 kB)
ββββββββββββββββββββββββββββββββββββββββ 141.4/141.4 kB 8.2 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.13 in c:\users\aniwax\documents\github\ibruscoresim\ibrusenv\lib\site-packa
(from pygeos==0.12) (1.23.4)
Building wheels for collected packages: pygeos
Building wheel for pygeos (pyproject.toml) ... error
error: subprocess-exited-with-error
Γ Building wheel for pygeos (pyproject.toml) did not run successfully.
β exit code: 1
β°β> [65 lines of output]
Could not find geos-config executable. Either append the path to geos-config to PATH or manually provide the ude_dirs, library_dirs, libraries and other link args for compiling against a GEOS version >=3.5.
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\pygeos
copying pygeos\constructive.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\coordinates.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\creation.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\decorators.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\enum.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\geometry.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\io.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\linear.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\measurement.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\predicates.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\set_operations.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\strtree.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\testing.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\_version.py -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\__init__.py -> build\lib.win-amd64-cpython-311\pygeos
creating build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\common.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_constructive.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_coordinates.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_creation.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_creation_indices.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_geometry.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_io.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_linear.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_measurement.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_misc.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_predicates.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_set_operations.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_strtree.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\test_testing.py -> build\lib.win-amd64-cpython-311\pygeos\tests
copying pygeos\tests\__init__.py -> build\lib.win-amd64-cpython-311\pygeos\tests
running egg_info
writing pygeos.egg-info\PKG-INFO
writing dependency_links to pygeos.egg-info\dependency_links.txt
writing requirements to pygeos.egg-info\requires.txt
writing top-level names to pygeos.egg-info\top_level.txt
reading manifest file 'pygeos.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'pygeos.egg-info\SOURCES.txt'
copying pygeos\_geometry.c -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\_geometry.pyx -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\_geos.c -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\_geos.pxd -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\_geos.pyx -> build\lib.win-amd64-cpython-311\pygeos
copying pygeos\_pygeos_api.pxd -> build\lib.win-amd64-cpython-311\pygeos
UPDATING build\lib.win-amd64-cpython-311\pygeos/_version.py
set build\lib.win-amd64-cpython-311\pygeos/_version.py to '0.12.0'
running build_ext
building 'pygeos.lib' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\src
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl. /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\aniwax\Documents\GitHub\iBrusCoreSim\ibrusenv\include -IC:\Users\an\AppData\Local\Programs\Python\Python311\include -IC:\Users\aniwax\AppData\Local\Programs\Python\Python311\Include \Users\aniwax\AppData\Local\Temp\pip-build-env-qbniyqoa\overlay\Lib\site-packages\numpy\core\include "-IC:\Program s (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\ATLMFC\include" "-IC:\Program Files (x86)rosoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include" "-IC:\Program Files (x86)\Windows Kits\10\ide\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (xWindows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-ICogram Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcsrc/c_api.c /Fobuild\temp.win-amd64-cpython-311ease\src/c_api.obj
c_api.c
C:\Users\aniwax\AppData\Local\Temp\pip-install-_1zaabxl\pygeos_d9dff3765b834eccab5867e3e841624b\src\geos.h(13arning C4068: unknown pragma 'GCC'
C:\Users\aniwax\AppData\Local\Temp\pip-install-_1zaabxl\pygeos_d9dff3765b834eccab5867e3e841624b\src\geos.h(14arning C4068: unknown pragma 'GCC'
C:\Users\aniwax\AppData\Local\Temp\pip-install-_1zaabxl\pygeos_d9dff3765b834eccab5867e3e841624b\src\geos.h(15atal error C1083: Cannot open include file: 'geos_c.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.28.29\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 pygeos
Failed to build pygeos
ERROR: Could not build wheels for pygeos, which is required to install pyproject.toml-based projects
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[Done] Build Py3.11 wheels & fix tests for GEOS 3.11 #458
Open. caspervdw wants to merge 8 commits into pygeos:master. base: master ... Pygeos installation doesn't work with python 3.11 #457. Open.
Read more >Changelog β pygeos documentation - Read the Docs
Run them by 1) installing pytest (or pygeos[test] ) and 2) invoking pytest --pyargs pygeos.tests . We started using a new tool for...
Read more >geopandas/geopandas - Gitter
I would like to use geopandas 0.8.0 + PyGEOS but am having installation problems and would like some advice. After installation of 0.8.0...
Read more >Python pygame not installing - Stack Overflow
Short answer. pip install pygame --pre is necessary right now due to your Python version. Long answer. Your traceback shows you are usingΒ ......
Read more >Installation β GeoPandas 0.12.2+0.gefcb367.dirty ...
Therefore, we advise you to closely follow the recommendations below to avoid installation problems. Installing with Anaconda / conda#. To install GeoPandas andΒ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Aniwax @Erotemic Version 0.14 release has started, it should be up (with Py3.11 wheels) within an hour.
@caspervdw thanks for the release!