简体   繁体   English

问题安装匀称的 Python 包

[英]Issue installing shapely Python Package

I am running python 3.6 on windows and am attempting to install Shapely using我在 Windows 上运行 python 3.6 并尝试使用

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谢谢

You may try to use the binary from this unofficial site .您可以尝试使用来自这个非官方站点的二进制文件。 Just use pip install {wheel file name} to install it.只需使用pip install {wheel file name}安装它。

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

Hope this would make the installation easier.希望这会使安装更容易。

我在通过pip install shapely安装shapely-1.5.17遇到了类似的错误,安装后使 pip install 命令起作用:

sudo apt-get install libgeos-dev

As of 2020, you can now simply install Shapely for Windows with:从 2020 年开始,您现在可以简单地安装适用于 Windows 的 Shapely:

pip install shapely

(you many need --upgrade to get at least version 1.7.0, when binary wheels were added for Windows) (当为 Windows 添加二进制轮时,您需要--upgrade至少获得 1.7.0 版)

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

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