0

我正在尝试使用安装 esmrepip install esmre但收到错误日志:

    Building wheel for esmre (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\my\appdata\local\programs\python\python39\python.exe' 'c:\users\my\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\my\AppData\Local\Temp\tmpyn_e_1fj'
       cwd: C:\Users\my\AppData\Local\Temp\pip-install-d7z9p1pt\esmre_d6ab7ab88a0b46b69217e46e7a6fb9c5      
  Complete output (21 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  copying src\esmre.py -> build\lib.win-amd64-3.9
  running build_ext
  building 'esm' extension
  creating build\temp.win-amd64-3.9
  creating build\temp.win-amd64-3.9\Release
  creating build\temp.win-amd64-3.9\Release\src
  creating build\temp.win-amd64-3.9\Release\src\esm
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\claud\appdata\local\programs\python\python39\include -Ic:\users\claud\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt 
-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcsrc/esm.c /Fobuild\temp.win-amd64-3.9\Release\src/esm.obj  esm.c
  src/esm.c(1651): warning C4244: 'function': conversion from 'Py_ssize_t' to 'ac_offset', possible loss of data
  src/esm.c(1935): warning C4244: 'function': conversion from 'Py_ssize_t' to 'ac_offset', possible loss of data
  src/esm.c(2386): error C2039: 'tp_print': is not a member of '_typeobject'
 '_typeobject'
  src/esm.c(2892): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
  src/esm.c(2908): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for esmre
Failed to build esmre
ERROR: Could not build wheels for esmre which use PEP 517 and cannot be installed directly

这是我的规格:

  • Windows 10 家庭 64 位
  • 蟒蛇 3.9.5
  • 点 21.1.3

我努力了:

  • 升级 pip 和 setuptools
  • python -m pip install --no-use-pep517 esmre
  • pip install esmre --no-binary :all:
  • 使用包内的 setup.py 安装 esmre。
  • pip install pep517

任何帮助将不胜感激!谢谢!

4

0 回答 0