首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在mac上安装python arcade

无法在mac上安装python arcade
EN

Stack Overflow用户
提问于 2021-01-20 16:35:24
回答 1查看 98关注 0票数 1

我想用python做点什么,所以我试着安装arcade。只是pip install arcade不起作用,我也尝试了其他的东西,比如关注this链接。这些都不起作用,它总是给我同样的错误。这是整个日志。

代码语言:javascript
复制
Collecting arcade
  Using cached arcade-2.5.2-py3-none-any.whl (38.3 MB)
Collecting numpy==1.19.2
  Using cached numpy-1.19.2.zip (7.3 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: still running...
    Preparing wheel metadata: finished with status 'done'
Collecting pytiled-parser==0.9.4a3
  Using cached pytiled_parser-0.9.4a3-py3-none-any.whl (15 kB)
Collecting pillow~=8.0
  Using cached Pillow-8.1.0-cp39-cp39-macosx_10_10_x86_64.whl (2.2 MB)
Collecting pyglet<2,>=1.5.11
  Using cached pyglet-1.5.14-py3-none-any.whl (1.1 MB)
Collecting pymunk~=5.7
  Using cached pymunk-5.7.0-py2.py3-none-macosx_10_13_x86_64.whl (201 kB)
Collecting cffi!=1.13.1
  Using cached cffi-1.14.4-cp39-cp39-macosx_10_9_x86_64.whl (177 kB)
Collecting pyyaml~=5.3
  Using cached PyYAML-5.4-cp39-cp39-macosx_10_9_x86_64.whl (259 kB)
Collecting shapely~=1.7
  Using cached Shapely-1.7.1.tar.gz (383 kB)

    ERROR: Command errored out with exit status 1:
     command: /Users/AaronKanaron/PycharmProjects/arcadeTest/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py'"'"'; __file__='"'"'/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-pip-egg-info-4y1krwzl
         cwd: /private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/
    Complete output (12 lines):
    Failed `CDLL(/Library/Frameworks/GEOS.framework/Versions/Current/GEOS)`
    Failed `CDLL(/opt/local/lib/libgeos_c.dylib)`
    Failed `CDLL(/usr/local/lib/libgeos_c.dylib)`
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py", line 85, in <module>
        from shapely._buildcfg import geos_version_string, geos_version, \
      File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/shapely/_buildcfg.py", line 190, in <module>
        lgeos = load_dll('geos_c', fallbacks=alt_paths)
      File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/shapely/_buildcfg.py", line 162, in load_dll
        raise OSError(
    OSError: Could not find library geos_c or load any of its variants ['/Library/Frameworks/GEOS.framework/Versions/Current/GEOS', '/opt/local/lib/libgeos_c.dylib', '/usr/local/lib/libgeos_c.dylib']
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

它找不到setup.py,到目前为止,我搜索到的东西都没有帮助到我。因此,如果你们中的任何人能帮助我解决这个问题,那就太好了。

EN

回答 1

Stack Overflow用户

发布于 2021-10-12 05:23:52

您必须在系统上安装库GEOS。运行此命令- brew install geos

如果您没有brew,可以从以下位置下载:https://brew.sh

在ubuntu上,你可以做$ sudo apt-get install libgeos-dev

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65805798

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档