爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 8170|回复: 8

[求助] cartopy安装失败

[复制链接]

新浪微博达人勋

发表于 2022-3-19 16:48:38 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x

在pycharm里将cartopy添加到interpreter出现这种情况,有没有朋友知道怎么解决啊

密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2022-3-19 17:03:16 | 显示全部楼层
Collecting Cartopy
  Using cached Cartopy-0.20.2.tar.gz (10.8 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 'error'

  error: subprocess-exited-with-error
  
  Getting requirements to build wheel did not run successfully.
  exit code: 1
  
  [3 lines of output]
  setup.py:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 or later installed, or installation may fail.
    warnings.warn(
  Proj version 7.0.1 is installed, but cartopy requires at least version 8.0.0.
  [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-3-19 17:51:57 | 显示全部楼层
我一般装cartopy都使用lfd的非官方windows编译的二进制包,
而且安装cartopy之前,需要安装一系列的跟地理数据处理有关的包,
包括:GDAL, Fiona, shapely, pyproj, pygeo, geopandas matplotlib等

https://www.lfd.uci.edu/~gohlke/pythonlibs/
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-3-20 17:22:36 | 显示全部楼层
先用cmd命令进入到终端,输入指令pip debug --verbose,然后看compatible tags,看支持什么类型的文件,然后去网站https://www.lfd.uci.edu/~gohlke/pythonlibs/下载相应的wheel文件。下载好之后,cd到wheel所在文件的文件夹,然后pip install ****.wheel(下载好的wheel文件名字)
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-3-20 20:18:03 | 显示全部楼层
在终端输入conda install cartopy
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2022-3-22 16:12:23 | 显示全部楼层
已解决,感谢各位
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-3-26 20:10:17 | 显示全部楼层
sadf 发表于 2022-3-22 16:12
已解决,感谢各位

怎么解决的,我也遇到了同样的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2022-3-26 22:27:24 | 显示全部楼层
handsome11 发表于 2022-3-26 20:10
怎么解决的,我也遇到了同样的问题

我把interpreter环境换成anaconda的就可以添加进去了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-11-26 14:56:54 | 显示全部楼层
qinzhao 发表于 2022-3-20 17:22
先用cmd命令进入到终端,输入指令pip debug --verbose,然后看compatible tags,看支持什么类型的文件,然 ...

感谢分享,这个方法可以解决缺少wheel的方法!帮了大忙了!
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表