简体   繁体   English

安装 geoplot 包的问题

[英]Issue installing geoplot package

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.

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