0

尝试在 python 3.9.1 windiws 版本上安装 ripser 所有依赖项都已预先安装,包括 microsoft visual 中的构建工具。但是当我运行它时,我不断收到以下错误。

ERROR: Command errored out with exit status 1:
   command: 'c:\users\paula\appdata\local\programs\python\python39\python.exe' 'c:\users\paula\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\paula\AppData\Local\Temp\tmp45xjgsf6'
       cwd: C:\Users\paula\AppData\Local\Temp\pip-install-k98qcrft\ripser_d73af33c4d364b9f9b927544c1bfdf2d
  Complete output (21 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\ripser
  copying ripser\ripser.py -> build\lib.win-amd64-3.9\ripser
  copying ripser\_version.py -> build\lib.win-amd64-3.9\ripser
  copying ripser\__init__.py -> build\lib.win-amd64-3.9\ripser
  running build_ext
  building 'pyRipser' extension
  creating build\temp.win-amd64-3.9
  creating build\temp.win-amd64-3.9\Release
  creating build\temp.win-amd64-3.9\Release\ripser
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DUSE_COEFFICIENTS=1 -DNDEBUG=1 -DASSEMBLE_REDUCTION_MATRIX=1 -I.\ripser -Ic:\users\paula\appdata\local\programs\python\python39\include -Ic:\users\paula\appdata\local\programs\python\python39\include -IC:\Users\paula\AppData\Local\Temp\pip-build-env-8p1qzbil\overlay\Lib\site-packages\numpy\core\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include /EHsc /Tpripser/pyRipser.cpp /Fobuild\temp.win-amd64-3.9\Release\ripser/pyRipser.obj -Ofast -D_hypot=hypot /std:c++14
  cl : Command line warning D9025 : overriding '/Os' with '/Ot'
  cl : Command line warning D9002 : ignoring unknown option '-Of'
  cl : Command line warning D9002 : ignoring unknown option '-Oa'
  pyRipser.cpp
  c:\users\paula\appdata\local\programs\python\python39\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for ripser
Failed to build ripser
ERROR: Could not build wheels for ripser which use PEP 517 and cannot be installed directly.

我已经尝试过 pip install -- pre -U ripser ,它适用于 sklearn 但它不适用于此任何建议将不胜感激。

4

1 回答 1

0

从那以后,我通过删除 python 并重新安装为 3.8.7 版来安装 ripser。python 3.9.1 不支持很多软件包,因此安装可能会更加困难。在旧版本的 python 上,我能够毫无问题地重新安装我的所有软件包。

于 2021-01-02T13:51:17.573 回答