AttributeError:模块'pyproj'没有属性'pyproj_datadir'

问题描述 投票:2回答:1

有一个噩梦下载底图,有很多错误并修复它们,但另一个出现了。我现在不断收到以下错误:

使用spyder我写道:

from mpl_toolkits.basemap import Basemap

它输出:

 File "/anaconda3/lib/python3.7/site-packages/mpl_toolkits/basemap/__init__.py", 
line 152, in <module>
    epsgf = open(os.path.join(pyproj.pyproj_datadir,'epsg'))

AttributeError: module 'pyproj' has no attribute 'pyproj_datadir'

我试过了:

pip install pyproj==1.9.6

但在大量文字中,红线表示:

Failed building wheel for pyproj
python anaconda spyder matplotlib-basemap
1个回答
2
投票

我正在努力解决在Windows中安装底图的噩梦,并为此错误修复了

pip install pyproj==1.9.6

为我工作,但我不得不关闭Spyder(或Jupyter或任何IDE)。在pip安装期间打开它会产生权限错误。我从这篇文章得到了这个:Python - PIP install trouble shooting - PermissionError: [WinError 5] Access is denied

© www.soinside.com 2019 - 2024. All rights reserved.