安装geoplot包时出现问题

2024-09-28 19:31:25 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试在Linux或windows中安装geoplot时,终端要么挂断,要么出现error: unable to determine GEOS version 。我在anaconda中检查了geos版本,它说我有GEOS 3.8

我已经试过了pip install geoplot和conda forge现场为geoplot conda install -c conda-forge geoplotlib提供的线路

在过去的几个小时里,我一直在寻找解决方案,但没有结果


Tags: installto终端versionlinuxwindowserroranaconda
1条回答
网友
1楼 · 发布于 2024-09-28 19:31:25

这是大多数试图安装GEOS、Cartopy和Proj的开发人员经常遇到的问题

在安装GEOS或Cartopy之前,需要存在某些软件包。快速查看错误的屏幕截图,您可以尝试以下操作

sudo apt-get install libproj-dev proj-data proj-bin  
sudo apt-get install libgeos-dev  
sudo pip install cython  
sudo pip install cartopy
sudo apt install python3-dev  

上述情况下的替代解决方案不适用于您,原因可能是Anaconda中存在混合通道问题,要解决此问题,请以root(admin)身份发出以下命令

conda config  set channel_priority strict

编辑~/.condarc文件,该文件在编辑后如下所示:

channel_priority: strict
channels:
  - conda-forge
  - defaults 

使用root用户安装它,因为它必须访问标准用户无权访问的位置

conda install geoplot -c conda-forge

相关问题 更多 >