0
I am trying to install the shapely package using pip install, but installation does not complete.
I typed:
pip install shapely
As a result, I got the following message:
F:\WPy-3670\scripts>pip install shapely
Collecting shapely
Using cached https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\silva\AppData\Local\Temp\pip-install-a6qsxj87\shapely\setup.py", line 80, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "C:\Users\silva\AppData\Local\Temp\pip-install-a6qsxj87\shapely\shapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos_c.dll")
File "F:\WPy-3670\python-3.6.7.amd64\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\silva\AppData\Local\Temp\pip-install-a6qsxj87\shapely\
I have installed other packages and it worked just fine.
What can I do to manage to install this package? (I want to install it because I also want to install the geopandas package, which, by the way, displayed the same problem.)
Thank you very much.
1
Do you have GEOS installed? See https://shapely.readthedocs.io/en/stable/project.html#requirements
– slhck – 2019-01-30T12:31:53.730