Python.exe -m pip install -r требования/development.txt не завершается из-за ошибкиPython

Программы на Python
Ответить
Anonymous
 Python.exe -m pip install -r требования/development.txt не завершается из-за ошибки

Сообщение Anonymous »

Я пытаюсь запустить pip install python-geohash, но получаю следующую ошибку:

Неустранимая ошибка c1083: невозможно открыть исходный файл: 'src/geohash.cpp'

Я обнаружил, что эта библиотека больше не поддерживается. Планируете ли вы вместо этого перейти на geohash2?
Вывод ошибки:
Error
Building wheel for python-geohash (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for python-geohash (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-310
copying geohash.py -> build\lib.win-amd64-cpython-310
copying quadtree.py -> build\lib.win-amd64-cpython-310
copying jpgrid.py -> build\lib.win-amd64-cpython-310
copying jpiarea.py -> build\lib.win-amd64-cpython-310
running build_ext
building '_geohash' extension
creating build\temp.win-amd64-cpython-310\Release\src
"C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.50.35717\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPYTHON_MODULE=1 -IC:\projects\superset\venv\include -IC:\Users\hmend\.rye\py\cpython@3.10.15\include -IC:\Users\hmend\.rye\py\cpython@3.10.15\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.50.35717\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/geohash.cpp /Fobuild\temp.win-amd64-cpython-310\Release\src\geohash.obj
geohash.cpp
c1xx: fatal error C1083: Cannot open source file: 'src/geohash.cpp': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\18\\BuildTools\\VC\\Tools\\MSVC\\14.50.35717\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-geohash


Подробнее здесь: https://stackoverflow.com/questions/798 ... because-an
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»