可以安装geoplot软件包
我正在尝试安装 geoplot 包装几个小时,但我不明白为什么不能这样做。我在这里看到了几个链接,只是说“只使用conda,它将起作用”,但是conda install -c conda -forge geoplot
或pip install nertal geoplot
正常工作。
我在此问题上看到的最好的问题是一个,但即使逐步遵循解决方案也无法完成工作。
我在Windows 10 64位上,带有:
- Python(3.7.6)
- Conda(4.8.2)
- Pip(20.0.2)
- Geos(0.2.3)
- Proj(0.2.0)(0.2.0)
- 和Shapely(1.8.0) 。
另外,我在Windows的环境变量上已经使用Geopandas(0.10.2)功能齐全,并且与GDAL_DATA路径有关。
这是通过pip
tryinh安装的错误:
Collecting rasterio
Using cached rasterio-1.2.10.tar.gz (2.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\pepereira\Anaconda3\python.exe' 'C:\Users\pepereira\Anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\PEPERE~1\AppData\Local\Temp\tmpisdpcfsw'
cwd: C:\Users\PEPERE~1\AppData\Local\Temp\pip-install-f8mf8fv_\rasterio
Complete output (2 lines):
INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\pepereira\Anaconda3\python.exe' 'C:\Users\pepereira\Anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\PEPERE~1\AppData\Local\Temp\tmpisdpcfsw' Check the logs for full command output.
通过conda
命令行确实需要很长时间,并且显示了一堆依赖关系冲突...是否有人知道如何我可以解决这个问题吗?非常感谢!
I'm trying to install geoplot package for a few hours now but I can't understand why I can't do it. I saw several links in here just saying "only use conda and it will work" but neither conda install -c conda-forge geoplot
or pip install geoplot
are working.
The best question I saw in this matter was this one but even following the solution step by step isn't doing the job.
I'm on a Windows 10 64bit, with:
- Python (3.7.6)
- conda (4.8.2)
- pip (20.0.2)
- geos (0.2.3)
- proj (0.2.0)
- and shapely (1.8.0) already installed.
Also, I'm with geopandas (0.10.2) fully functional and with GDAL_DATA path already on my Windows' environment variables.
Here is the error while tryinh to install via pip
:
Collecting rasterio
Using cached rasterio-1.2.10.tar.gz (2.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\pepereira\Anaconda3\python.exe' 'C:\Users\pepereira\Anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\PEPERE~1\AppData\Local\Temp\tmpisdpcfsw'
cwd: C:\Users\PEPERE~1\AppData\Local\Temp\pip-install-f8mf8fv_\rasterio
Complete output (2 lines):
INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\pepereira\Anaconda3\python.exe' 'C:\Users\pepereira\Anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\PEPERE~1\AppData\Local\Temp\tmpisdpcfsw' Check the logs for full command output.
via conda
command line it really takes a long long time and shows a bunch of dependencies conflict... Does anybody knows how can I solve this issue? Many thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法在基本环境上解决此问题,因此,为了安装
Geoplot
,我必须在Conda上创建一个新的环境。如果将来有人会遇到同样的问题,将在下面发布我在此处所做的事情:之后,我直接安装了通过(GDAL,FIONA,PROJ等)的Conda安装地球锁定。 Geopandas> Geoplot,因为这样做我也遇到了相同的依赖性问题,即使在全新的环境上,我也是如此:
从这里开始,我刚刚使用
pip
,因为我不知道为什么要与conda一起尝试还指出了依赖项问题...我不知道是我的软件包还是python版本,但是有了上面的解决方案,我能够成功地安装
geoplot
。奖励提示:安装
ipykernel
和nb_conda_kernels
在您的新环境/基础上包裹可以帮助您管理不同的ENCSI wan't able to solve this problem on my base environment, so in order to install
geoplot
I had to create a new environment on conda. Will post what I've done here below in case of anyone in the future come across this same problem:After that I've installed directly geoplot through conda insted of (GDAL, fiona, proj, etc.) > geopandas > geoplot, because doing that I was having the same dependencie problems, even on a brand new environment, so:
From here I just installed jupyter using
pip
because I don't know why trying it with conda was also pointing out dependencie problems as well...I don't know if it was my packages or python versions but with this solution above I was able to successfully instal
geoplot
.Bonus tip: installing
ipykernel
andnb_conda_kernels
packages on your new environment/base could help you out to manage different envs