[英]Issue installing geoplot package
When I try to install geoplot in either my Linux box or windows box the terminal either gets hung up or I get an error: unable to determine GEOS version<\/a> .当我尝试在我的 Linux 机器或 Windows 机器中安装 geoplot 时,终端要么挂断,要么出现
错误:无法确定 GEOS 版本<\/a>。 I checked geos version in anaconda and it states I have GEOS 3.8<\/a> .
我在 anaconda 中检查了 geos 版本,它说我有
GEOS 3.8<\/a> 。
I've searched for a solution for the past couple hours, but no avail.在过去的几个小时里,我一直在寻找解决方案,但无济于事。
"
This is a frequent issue faced by most of the developers trying to install GEOS, Cartopy and Proj.这是大多数尝试安装 GEOS、Cartopy 和 Proj 的开发人员经常面临的问题。
It happens to be that there are certain packages that need to exist before installing GEOS or Cartopy.碰巧在安装 GEOS 或 Cartopy 之前需要存在某些包。 A quick look at your screenshot of the error, you can try out the following...
快速查看错误的屏幕截图,您可以尝试以下操作...
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
An alternative solution in case above does not work for you, the reason could be of a mixed channel problem in Anaconda, to resolve that, issue following commands as root (admin)上述情况下的替代解决方案对您不起作用,原因可能是 Anaconda 中的混合通道问题,要解决该问题,请以 root (admin) 身份发出以下命令
conda config --set channel_priority strict
edit the ~/.condarc file which will look like this after the edit:编辑 ~/.condarc 文件,编辑后将如下所示:
channel_priority: strict
channels:
- conda-forge
- defaults
Use the root user to install it because it will have to access places where your standard user does not have access.使用 root 用户安装它,因为它必须访问标准用户无法访问的地方。
conda install geoplot -c conda-forge
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.