[英]Can't install geoplot package
I'm trying to install geoplot package for a few hours now but I can't understand why I can't do it.我正在尝试安装geoplot包几个小时,但我不明白为什么我不能这样做。 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.我在这里看到了几个链接,只是说“只使用 conda,它会起作用”,但
conda install -c conda-forge geoplot
或pip install geoplot
都不起作用。
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:我在 Windows 10 64bit 上,具有:
Also, I'm with geopandas (0.10.2) fully functional and with GDAL_DATA path already on my Windows' environment variables.此外,我的 geopandas (0.10.2) 功能齐全,并且我的 Windows 环境变量中已经有 GDAL_DATA 路径。
Here is the error while tryinh to install via pip
:这是 tryinh 通过
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?通过
conda
命令行它确实需要很长时间并显示一堆依赖项冲突......有谁知道我该如何解决这个问题? Many thanks in advance!提前谢谢了!
I 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.我无法在我的基础环境中解决这个问题,所以为了安装
geoplot
,我必须在 conda 上创建一个新环境。 Will post what I've done here below in case of anyone in the future come across this same problem:将在下面发布我在这里所做的事情,以防将来有人遇到同样的问题:
conda create -n geoEnv python=3.8
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:之后,我通过 conda insted (GDAL, fiona, proj, etc.) > geopandas > geoplot 直接安装了 geoplot,因为这样做我遇到了同样的依赖问题,即使是在全新的环境中,所以:
conda activate geoEnv
conda install -c conda-forge geoplot
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...从这里我刚刚使用
pip
安装了 jupyter,因为我不知道为什么用 conda 尝试它也指出了依赖性问题......
I don't know if it was my packages or python versions but with this solution above I was able to successfully instal geoplot
.我不知道是我的包还是 python 版本,但是通过上面的这个解决方案,我能够成功安装
geoplot
。
Bonus tip: installing ipykernel
and nb_conda_kernels
packages on your new environment/base could help you out to manage different envs额外提示:在您的新环境/基础上安装
ipykernel
和nb_conda_kernels
包可以帮助您管理不同的环境
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.