Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行时python setup.py develop报错 #285

Closed
s121091 opened this issue May 28, 2022 · 4 comments
Closed

运行时python setup.py develop报错 #285

s121091 opened this issue May 28, 2022 · 4 comments

Comments

@s121091
Copy link

s121091 commented May 28, 2022

(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/

@s121091 s121091 changed the title 运行时python setup.py develop显示ModuleNotFoundError: No module named 'torch' 运行时python setup.py develop报错 May 28, 2022
@zxsn
Copy link

zxsn commented Jun 25, 2022

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

@zxsn
Copy link

zxsn commented Jun 25, 2022

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

@s121091
Copy link
Author

s121091 commented Jun 25, 2022

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

@s121091
Copy link
Author

s121091 commented Jun 25, 2022

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants