Issue installing shapely Python Package

Cameron Wasilewsky picture Cameron Wasilewsky · Apr 3, 2017 · Viewed 8.3k times · Source

I am running python 3.6 on windows and am attempting to install Shapely using

pip install shapely==1.6b2

It is giving me the following errors

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Cameron\AppData\Local\Temp\pip-build-242ae_ih\shapely\

I have seen the other posts about this issue and have tried:

pip install --upgrade setuptools
pip install ez_setup
easy_install -U setuptools

Nothing seems to work and I am not sure what to do next. Any advice would be appreciated.

Thanks

Answer

thewaywewere picture thewaywewere · Apr 3, 2017

You may try to use the binary from this unofficial site. Just use pip install {wheel file name} to install it.

  • Shapely‑1.5.17‑cp36‑cp36m‑win32.whl (32-bit)
  • Shapely‑1.5.17‑cp36‑cp36m‑win_amd64.whl (64-bit)

Hope this would make the installation easier.