Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 997
Sim re Avatar asked May 02 '18 06:05

Sim re


People also ask

What is shapely library in Python?

Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects. It is based on the widely deployed GEOS (the engine of PostGIS) and JTS (from which GEOS is ported) libraries.

What is shapely package?

Shapely is a Python package for set-theoretic analysis and manipulation of planar features using (via Python's ctypes module) functions from the well known and widely deployed GEOS library. GEOS, a port of the Java Topology Suite (JTS), is the geometry engine of the PostGIS spatial extension for the PostgreSQL RDBMS.


3 Answers

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

conda install shapely

like image 75
bgordon Avatar answered Nov 15 '22 10:11

bgordon


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

like image 23
AcaNg Avatar answered Nov 15 '22 12:11

AcaNg


sudo apt-get install python-shapely

on Python 3

sudo apt-get install python3-shapely
like image 32
Bruno Kuasney Avatar answered Nov 15 '22 11:11

Bruno Kuasney