5

I cant install the shapely module in my anaconda prompt.

pip install --upgrade setuptools

pip install shapely 


        Command "python setup.py egg_info" failed with error code 1 in C:\Users\renau\AppData\Local\Temp\pip-install-27xf59zz\shapely\

Any solutions?

Sim re
  • 73
  • 1
  • 2
  • 8
  • 3
    Possible duplicate of [pip install returns "python setup.py egg\_info" failed with error code 1](https://stackoverflow.com/questions/35991403/pip-install-returns-python-setup-py-egg-info-failed-with-error-code-1) – l'L'l May 02 '18 at 06:49
  • download .whl file from [unofficial python binaries for windows](https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely) and install it using `pip install .whl` – Ahmed Nour Eldeen May 31 '18 at 13:02

3 Answers3

9

If you are using Anaconda, then it would probably be best to use:

conda install shapely

bgordon
  • 149
  • 2
  • 15
4

i guess you are using Windows ? if so, you can't install shapely directly via pip

here's the steps:

  1. go to this site and download desired version of shapely
  2. run this script pip install Shapely‑1.6.4.post1‑cp36‑cp36m‑win_amd64.whl

here i'm going to install Shapely version 1.6.4 for python 3.6 running in Windows 64bit

AcaNg
  • 704
  • 1
  • 9
  • 26
3
sudo apt-get install python-shapely

on Python 3

sudo apt-get install python3-shapely