[ Original post is @ https://towardsdatascience.com/install-shapely-on-windows-72b6581bb46c ]
Shapely is a Python package full of wonderful possibilities for geometric stuff to do with your data.
Though, if you are working on Windows OS, installing Shapely is not a trivial task.
Installing with conda
Now this is really simple! For more information on why conda install shapely sometimes does not work, and why the first line is needed, go
here.
conda config --add channels conda-forge
conda install shapely
And that’s it!
Another method is :
Go to Settings => System => About => System Type .
Find out your whether you are using Windows 32-bit or 64-bit.
- Find out your python version. Open Command prompt, enter python --version and remember the first two numbers. For example my version is Python 3.7.3 so I should remember the number 37 .
- pip install wheel
- Go here and download the wheel corresponding to items 1–2. For example, I have 64-bit OS and Python 3.7.3 so I need to download file Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl .
- pip install <path-to-Downloads>\<filename_from_item_3> .
For example in my case I entered
pip install C:\Users\Dalya\Downloads\Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl .
And that’s it!