Python版本3.9,编译器Pycharm
安装Pybob软件包时报错,最开始是提示pip版本不够新,更新后,还是出错。
报错提示如下:
Collecting pybob
Using cached pybob-0.26.2-py3-none-any.whl (89 kB)
Collecting gdal
Using cached GDAL-3.4.2.tar.gz (757 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting geopandas
Using cached geopandas-0.10.2-py2.py3-none-any.whl (1.0 MB)
Collecting scikit-image>=0.18
Using cached scikit_image-0.19.2-cp39-cp39-win_amd64.whl (12.6 MB)
Collecting numpy
Using cached numpy-1.22.3-cp39-cp39-win_amd64.whl (14.7 MB)
Collecting shapely
Using cached Shapely-1.8.1.post1-cp39-cp39-win_amd64.whl (1.3 MB)
Collecting fiona
Using cached Fiona-1.8.21.tar.gz (1.0 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[1 lines of output]
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.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.