IrisRainbowNeko/genshin_auto_fish

运行时python setup.py develop报错

s121091 opened this issue · 4 comments

(base) C:\Users\chunm\genshin_auto_fish>python setup.py develop
running develop
D:\Users\chunm\anaconda3\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
D:\Users\chunm\anaconda3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
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
D:\Users\chunm\anaconda3\lib\site-packages\torch\utils\cpp_extension.py:387: 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
D:\Users\chunm\anaconda3\lib\site-packages\torch\utils\cpp_extension.py:322: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'yolox._C' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

zxsn commented

我也需要一样的问题,但是安装Microsoft Visual C++2015-2022不能解决。

zxsn commented

运行下面的命令试试,
cd YOLOX
pip3 install -v -e .
根据报错情况找解决方法。

我也懒得折腾了,我折腾好久了已经,然后找到了另一个挺好用的,下载下来直接可以运行

运行下面的命令试试,
cd YOLOX
pip3 install -v -e .
根据报错情况找解决方法。

https://github.com/babalae/genshin-fishing-toy
这个大佬的方便好用