When trying to install Shapely on my Windows 64bit computer, I cannot get the GEOS library to work.
So far, I have run the OSGeo4W installer from which I installed
As of 2020, the recommended way to install Shapely is simply:
pip install shapely
(you may need --upgrade
to get at least version 1.7.0, when binary wheels were addeed to PyPi)
Anaconda is a popular resource to install precompiled Python packages. Shapely for win-64 is available from several of the main channels. This is a recommended method if you require lots of up-to-date Python software, and are happy to use Python from a 3rd party vendor.
Miniconda is similar, except much smaller to download/install (as it doesn't bundle as many packages in the base install).
With ether of these:
conda install shapely
Another resource for Windows users with Python installed from python.org, Christoph Gohlke maintains an excellent pool of Unofficial Windows Binaries for Python. Download the Shapely wheels for 32- or 64-bit versions of Python, which includes GEOS dependencies.
I used the command below and it did work;
pip install Shapely==1.3.0
I tried the method of @jozef but failed even I imported the folder to the path.
A straightforward solution: add geos_c.dll, geos.dll to the library folder of your python environment. Then it works.
There is an version of Shapely available here that includes geos in the installer. Look at the bottom of the page.
see my answer here https://stackoverflow.com/a/50623996/1683626
on windows 10, python 3.6.5 64bit