使用gdal-through-pip-ins时生成轮错误

2024-04-26 01:07:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用cmd在python上安装gdal。我使用了c:\pip install gdal,但出现以下错误消息:

Failed building wheel for gdal

最后出现详细信息错误消息

"Command "c:\users\usman\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\usman\AppData\Local\Temp\pip-install-3a_vv1uf\gdal\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\usman\AppData\Local\Temp\pip-record-ig9j7gkj\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\usman\AppData\Local\Temp\pip-install-3a_vv1uf\gdal\"

我还下载了一些gdal.whl文件,并在我的路径中尝试了它们,但没有结果。出现以下消息

Requirement 'c:\user\usman\downloads\GDAL-2.4.1-cp37-cp37m-win32.whl' looks like a filename, but the file does not exist Processing c:\user\usman\downloads\gdal-2.4.1-cp37-cp37m-win32.whl Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\user\usman\downloads\GDAL-2.4.1-cp37-cp37m-win32.whl'"


Tags: installpip消息localdownloadscoderecordusers