zl程序教程

您现在的位置是:首页 >  工具

当前栏目

AlphAction编译不通过问题:error: command ‘:/home/yst/cudas/cuda-10.0/bin/nvcc‘ failed with exit status 1「建议收

Failed 问题 Error 建议 通过 编译 with status
2023-06-13 09:12:47 时间

大家好,又见面了,我是你们的朋友全栈君。

1. 问题描述

按照AlphAction官方地址中INSTALL.md一步一步执行,到最后一步pip install -e .总是报错,大片红色,换了台工作站还是不行,并且两台报错还不一样。 目前已解决问题这台工作站配置是Ubuntu16.04,CUDA=10.0,Pytorch=1.4,使用Anaconda管理环境。 完整报错描述: error: command ':/home/yst/cudas/cuda-10.0/bin/nvcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /home/yst/anaconda3/envs/alphaction/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/yst/MyProject/AlphAction/setup.py'"'"'; __file__='"'"'/home/yst/MyProject/AlphAction/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

2. 问题解决

参考 https://blog.csdn.net/qq_41251963/article/details/110120386?ops_request_misc=&request_id=&biz_id=102&utm_term=command ‘:/home/yst/cudas/cuda&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-3-110120386.pc_search_result_before_js 虽然我的问题和链接博客中给出的问题不一样,没有这一句 unable to execute 'usr/local/cuda-10.0/bin/nvcc': No such file or directory 但是还是按照给出的方法试了下,大概经过50秒左右编译成功。成功界面如下:

之前是执行到 Running setup.py develop for alphaction这一步就开始报错。 还有些解决办法是建议直接修改repo中的setup.py文件,个人感觉对整个项目不是很熟悉的情况下先不要随便改动别人的代码,防止更多错误的发生。建议先从自己的环境配置、版本匹配,路径等找原因。 然后,就这个小问题花费我了一天半的时间。。。T T

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/157692.html原文链接:https://javaforall.cn