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

你好,安装第三方库的时候出现问题了 #26

Open
ffxxy opened this issue Jun 14, 2023 · 4 comments
Open

你好,安装第三方库的时候出现问题了 #26

ffxxy opened this issue Jun 14, 2023 · 4 comments

Comments

@ffxxy
Copy link

ffxxy commented Jun 14, 2023

你好,安装第三方库的时候出现问题了
QQ图片20230614210642

@QY1994-0919
Copy link
Owner

@ffxxy 环境以及第三方库安装参考#14

@2018loveyyq
Copy link

你好,我也遇到了相同的问题,请问您后来解决了吗这个问题 @ffxxy

@xq1643
Copy link

xq1643 commented Mar 14, 2024

正确的报错在上面,大概是 subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.。这个问题的解决方法如下:将setup.py中的“cmdclass={'build_ext': BuildExtension}”这一行改为“cmdclass={'build_ext': BuildExtension.with_options(use_ninja=False)}”,

解释为:pytorch默认使用ninjia作为backend,这里把它禁用掉就好了;

@xq1643
Copy link

xq1643 commented Mar 14, 2024

还有一个报错是:cc1plus: fatal error: /tmp/CFPnn/CFPNet/yolox/layers/csrc/vision.cpp: 没有那个文件或目录。这个问题讲setup.py中路径yolox改为fcp。查看目录可以看到vision.cpp在fcp下不在yolox下。不知道对你有没有帮助

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

4 participants