LittleMio / Genshin_auto_fish

原神自动钓鱼AI
https://github.com/7eu7d7/genshin_auto_fish
79 stars 12 forks source link

执行python setup.py develop时报错 #1

Closed szh-waw closed 2 years ago

szh-waw commented 2 years ago

(ysfish) C:\Windows\System32\Genshin_auto_fish>python setup.py develop

running develop running egg_info writing yolox.egg-info\PKG-INFO writing dependency_links to yolox.egg-info\dependency_links.txt writing top-level names to yolox.egg-info\top_level.txt C:\ProgramData\Anaconda3\envs\ysfish\lib\site-packages\torch\utils\cpp_extension.py:381: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) reading manifest file 'yolox.egg-info\SOURCES.txt' writing manifest file 'yolox.egg-info\SOURCES.txt' running build_ext C:\ProgramData\Anaconda3\envs\ysfish\lib\site-packages\torch\utils\cpp_extension.py:316: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'yolox._C' extension C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Windows\System32\Genshin_auto_fish\yolox\layers\csrc -IC:\ProgramData\Anaconda3\envs\ysfish\lib\site-packages\torch\include -IC:\ProgramData\Anaconda3\envs\ysfish\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\Anaconda3\envs\ysfish\lib\site-packages\torch\include\TH -IC:\ProgramData\Anaconda3\envs\ysfish\lib\site-packages\torch\include\THC -IC:\ProgramData\Anaconda3\envs\ysfish\include -IC:\ProgramData\Anaconda3\envs\ysfish\include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\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" /EHsc /TpC:\Windows\System32\Genshin_auto_fish\yolox\layers\csrc\vision.cpp /Fobuild\temp.win-amd64-3.7\Release\Windows\System32\Genshin_auto_fish\yolox\layers\csrc\vision.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9002 :忽略未知选项“-O3” vision.cpp c1xx: fatal error C1083: 无法打开源文件: “C:\Windows\System32\Genshin_auto_fish\yolox\layers\csrc\vision.cpp”: No such file or directory error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe' failed with exit status 2

求求大佬救救孩子

LittleMio commented 2 years ago

我可以帮你远程部署WeChat:Leo_rebirth