gpt4 book ai didi

python - pip install rasterio 时遇到错误

转载 作者:行者123 更新时间:2023-12-03 16:23:36 26 4
gpt4 key购买 nike

我在 Windows 10 上工作,在 anaconda 提示符下执行 pip install rasterio 时遇到错误。

(base) C:\Users\skywalker>pip install rasterio
Collecting rasterio
Using cached https://files.pythonhosted.org/packages/57/84/be5689470a73f5f8988cf44b81cb3493ebb8abbbebb69768c8fc86fccdd5/rasterio-1.0.24.tar.gz
Complete output from command python setup.py egg_info:
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.

Command "python setup.py egg_info" failed with error code 1 in C:\Users\SKYWAL~1\AppData\Local\Temp\pip-install-iyhe142u\rasterio\

最佳答案

如果您使用的是 anaconda,则可以执行以下操作:

conda install -c conda-forge <package-name>
在我看来,在 Windows 上使用 anaconda 总是更好。

关于python - pip install rasterio 时遇到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56962959/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com