Cannot properly install Pyrosm
See original GitHub issueHi, I can no longer install and import the library correctly.
FIRST ATTEMPT
- First I tried on my main computer, running Windows 10 version 10.0.19043 Build 19043.
- I created a virtual environment using anaconda, installed
geopandasusingconda install geopandasand subsequentlypyrosmusingconda install -c conda-forge pyrosm, as recommended in the documentation. - The installation is successful, but when I try to import the library I get this error:

- Reinstalling anaconda did not lead to any solution.
SECOND ATTEMPT
- I then tried to recreate the problem on my laptop (still windows 10 version 10.0.19043 Build 19043).
- The same error occurs again
THIRD ATTEMPT
- So I decided not to use an Anaconda env, but a simple Python virtual env.
- Still, same error
- Even installing only via pip the problem remains
FOURTH ATTEMPT
- I created a virtual machine with Ubuntu 64bit 20.04
- Installing everything with
conda(andconda-forge) leads to the same problem - Whether using an anaconda environment or a Python env the problem remains
- Using only pip to install the packages (in a Python env), the installation and import is (apparently) successful, but when you try to run a simple piece of code, the kernel dies (see image below).

FIFTH ATTEMPT
- I finally tried to use Google Colab
- The packages correctly install via pip

- and it is possible to import them, but with the same warning obtained in Linux (as expected)
/usr/local/lib/python3.7/dist-packages/geopandas/_compat.py:115: UserWarning: The Shapely GEOS version (3.9.1-CAPI-1.14.2) is incompatible with the GEOS version PyGEOS was compiled with (3.10.0-CAPI-1.16.0). Conversions between both will be slow.
shapely_geos_version, geos_capi_version_string
- Still, if you try to run the code the kernel dies.

PS: on the laptop I have a working environment with both Geopandas and Pyrosm, where the code runs correctly. The problem is that I can no longer replicate such an environment. Even creating a .yml file and reinstalling exactly the same packages generates the error. I have tried on multiple devices and OS, but with no success.
I have exhausted every option…
Thank you for your time, Daniele
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Cannot install pyrosm · Issue #61 - GitHub
I've been trying to install this pyrosm on Windows10 and Python 3.6 because it looks potentially useful (although inadequately documented...
Read more >Installation - Pyrosm
The recommended way to install pyrosm is by using conda package manager: ... and Cykhash) that needs to be successfully installed before Pyrosm...
Read more >pyrosm - PyPI
The recommended way to install pyrosm is using conda package manager: ... On Linux and Mac installing geopandas with pip should work without...
Read more >how to successfully install pyproj and geopandas?
First and most important: do not try to directly pip install or conda install any of the dependencies – if you do, they...
Read more >How to install Python geospatial libraries (Gdal, Fiona ...
Your browser can't play this video. ... We have created a tutorial that shows the installation process of the Python geospatial libraries in ......
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 Free
Top 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

Thank you so much for your quick answer! @HTenkanen
I installed
cykhash-1.0.2beforehand and everything works fine now 😃I don’t know if it is possible but it would be a good idea to have this version of
cykhashinstalled when usingconda-forge.Yes, I need to update the code base to reflect the latest changes in cykhash for the next release. But yes, freezing the cykhash version to older one is a quick fix for the installation issues.