可以安装geoplot软件包

发布于 2025-01-28 04:33:13 字数 1962 浏览 2 评论 0原文

我正在尝试安装 geoplot 包装几个小时,但我不明白为什么不能这样做。我在这里看到了几个链接,只是说“只使用conda,它将起作用”,但是conda install -c conda -forge geoplotpip 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一身仙ぐ女味 2025-02-04 04:33:13

我无法在基本环境上解决此问题,因此,为了安装Geoplot,我必须在Conda上创建一个新的环境。如果将来有人会遇到同样的问题,将在下面发布我在此处所做的事情:

conda create -n geoEnv python=3.8

之后,我直接安装了通过(GDAL,FIONA,PROJ等)的Conda安装地球锁定。 Geopandas> Geoplot,因为这样做我也遇到了相同的依赖性问题,即使在全新的环境上,我也是如此:

conda activate geoEnv    
conda install -c conda-forge geoplot

从这里开始,我刚刚使用pip ,因为我不知道为什么要与conda一起尝试还指出了依赖项问题...

我不知道是我的软件包还是python版本,但是有了上面的解决方案,我能够成功地安装geoplot

奖励提示:安装ipykernelnb_conda_kernels在您的新环境/基础上包裹可以帮助您管理不同的ENCS

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. 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 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...

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 and nb_conda_kernels packages on your new environment/base could help you out to manage different envs

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文