Sim re
Sim re

Reputation: 73

Install Shapely in Python 3

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?

Upvotes: 5

Views: 21475

Answers (3)

AcaNg
AcaNg

Reputation: 706

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

Upvotes: 4

Bruno Kuasney
Bruno Kuasney

Reputation: 31

sudo apt-get install python-shapely

on Python 3

sudo apt-get install python3-shapely

Upvotes: 3

bgordon
bgordon

Reputation: 149

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

conda install shapely

Upvotes: 9

Related Questions