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
我安装YOLOX出现了这样的问题,是什么原因呢? #86
Comments
pytorch vision must >=1.3 |
我把setup.py里读取readme.md的部分注释掉,然后成功安装YOLOX |
会报另外一个错误。 ERROR: Command errored out with exit status 1: 'C:\Users\10653.conda\envs\yolox\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'D:\Detection\YOLOX-main\setup.py'"'"'; file='"'"'D:\Detection\YOLOX-main\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. |
不知道是不是torch原因不匹配,还是没有装C++的原因? (yolox) D:\Detection\YOLOX-main\apex>pip3 install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext"--use-feature=in-tree-build ./
WARNING: Discarding file:///D:/Detection/YOLOX-main/apex. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. |
是的,将open README.md这两句注释掉后,再将最下面的long_description=long_description粗暴改为long_description=“long_description”就可以了。。。 |
我整个环境终于搭好了 |
怎么装上去的 兄弟 |
根据网页https://blog.csdn.net/weixin_38215769/article/details/106568368 |
我把README.md改成ANSI编码就跳过这个问题了 |
setup.py里第51行改成,with open("README.md", "r", encoding = 'utf-8') as f: ,就好了 |
没好呀,兄弟 |
咋改的兄弟 |
咋搞的兄弟 |
Encoding problem has been solved, Feel free to reopen. |
WARNING: Discarding file:///D:/LH/code/YOLOX-main. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The text was updated successfully, but these errors were encountered: