installation notes about pyproj - update?
See original GitHub issue$ curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
$ mkdir tmp_project
$ poetry init # follow the prompts
$ poetry add pyproj
$ ls -l ~/.cache/pypoetry/virtualenvs/tmp-project-py3.6/lib/python3.6/site-packages/pyproj/.libs/
libproj-e5ef822e.so.15.1.1
libsqlite3-fdd57a2d.so.0.8.6
libz-a147dcb0.so.1.2.3
$ cat ~/.cache/pypoetry/virtualenvs/tmp-project-py3.6/lib/python3.6/site-packages/pyproj-2.3.1.dist-info/WHEEL
Wheel-Version: 1.0
Generator: bdist_wheel (0.33.6)
Root-Is-Purelib: false
Tag: cp36-cp36m-manylinux1_x86_64
This looks like pyproj
is providing wheels with the required binary libs available. Yet, the geopandas docs indicate that it does not.
The point may be true of rtree
? e.g.
$ poetry add rtree
$ ls -1 ~/.cache/pypoetry/virtualenvs/tmp-project-py3.6/lib/python3.6/site-packages/rtree/
core.py
index.py
__init__.py
__pycache__
$ cat ~/.cache/pypoetry/virtualenvs/tmp-project-py3.6/lib/python3.6/site-packages/Rtree-0.8.3.dist-info/WHEEL
Wheel-Version: 1.0
Generator: bdist_wheel (0.29.0)
Root-Is-Purelib: true
Tag: py3-none-any
But, rtree
asserts that it is a pure-python library. So, what’s the story on that one?
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Installation - pyproj 3.4.1 documentation - GitHub Pages
The easiest methods for installing pyproj are: ... If these installation methods do not meet your needs, the section below provides further instructions...
Read more >How to Install Pyproj on Windows? - GeeksforGeeks
Installing Pyproj Interface on Windows using Conda: ... Note: If your preferred method of installation is conda-forge, use the below command ...
Read more >pyproj - PyPI
1. pip install pyproj. Copy PIP instructions. Latest version. Released: Dec 12, 2022.
Read more >Installing pyproj and NumPy | Python Geospatial Analysis ...
Use pip to go ahead and install NumPy; this can take a couple of minutes as many lines of installation verbosity are written...
Read more >Installation — GeoPandas 0.12.2+0.gefcb367.dirty ...
Note. We strongly recommend to either install everything from the defaults ... pyproj, rtree, and shapely provide binary wheels with dependencies included ...
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
We don’t use spatialite, you may be confusing it with libspatialindex? (what is used by rtree)
GEOS also provides spatial indexes, but currently we are using rtree for that (and both have some different trade-offs in terms of performance, so don’t want to simply switch; this is a topic that can in general use some more investigation)
No problem, it was just a question, don’t feel obliged! 😃
The information is indeed outdated. The wheels are a relatively recent addition for pyproj, and they are also only for mac and linux (like it is the case for fiona and shapely). Do you want to do a PR to correct that?
The story is that rtree itself is indeed a pure-python library, so technically they can provide universal wheels. But you still need libspatialindex C library installed, which is not included in the wheels.
rtree is not an actual hard dependency of geopandas. Partly because it is not that easy to install. But since it is very useful in practice (it’s needed for spatial join, overlay functionality), the conda packages list it as a dependency.