windows解决ModuleNotFoundError: No module named ‘cython_bbox‘问题,亲测可用

windows解决ModuleNotFoundError: No module named ‘cython_bbox‘问题,亲测可用_第1张图片

windows解决ModuleNotFoundError: No module named ‘cython_bbox‘问题,亲测可用_第2张图片

报错信息:

Collecting cython_bbox
  Downloading cython_bbox-0.1.3.tar.gz (41 kB)
     ---------------------------------------- 41.3/41.3 kB 9.1 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: cython_bbox
  Building wheel for cython_bbox (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'cython_bbox' extension
      creating build
      creating build\temp.win-amd64-cpython-39
      creating build\temp.win-amd64-cpython-39\Release
      creating build\temp.win-amd64-cpython-39\Release\src
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\luckyli\anaconda3\envs\pytorch\lib\site-packages\numpy\core\include -IC:\Users\luckyli\anaconda3\envs\pytorch\include -IC:\Users\luckyli\anaconda3\envs\pytorch\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc/cython_bbox.c /Fobuild\temp.win-amd64-cpython-39\Release\src/cython_bbox.obj -Wno-cpp
      cl: 命令行 error D8021 :无效的数值参数“/Wno-cpp”
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

解决办法:python -m pip install git+https://github.com/yanfengliu/cython_bbox.git

你可能感兴趣的:(python,深度学习,人工智能,python,人工智能,机器学习,pip,windows)