简体   繁体   English

在Python 3中安装Shapely

[英]Install Shapely in Python 3

I cant install the shapely module in my anaconda prompt. 我无法在anaconda提示符中安装匀称的模块。

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? 有什么办法吗?

如果您使用的是Anaconda,则最好使用:

conda install shapely

i guess you are using Windows ? 我猜您正在使用Windows? if so, you can't install shapely directly via pip 如果是这样,您将无法通过pip直接安装

here's the steps: 步骤如下:

  1. go to this site and download desired version of shapely 转到该网站并下载shapely的所需版本
  2. run this script pip install Shapely‑1.6.4.post1‑cp36‑cp36m‑win_amd64.whl 运行此脚本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 在这里,我将为Windows 64位上运行的python 3.6安装Shapely 1.6.4

sudo apt-get install python-shapely

在Python 3上

sudo apt-get install python3-shapely

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM