Fork me on Gitee

act量化工具出错

subprocess.CalledProcessError: Command '['which', 'g++']' returned non-zero exit status 1.
ERROR: Command errored out with exit status 1: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/actnn/setup.py'"'"'; __file__='"'"'/home/actnn/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.

按照actnn量化工具什么出现了以上错误,缺少C++依赖

按照

sudo apt-get install build-essential

继续出现

  error: [Errno 2] No such file or directory: '/usr/local/cuda/bin/nvcc': '/usr/local/cuda/bin/nvcc'
ERROR: Command errored out with exit status 1: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/actnn/setup.py'"'"'; __file__='"'"'/home/actnn/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.
Exception information:

最终解决方法:
点击https://bootstrap.pypa.io/get-pip.py,下载get-pip.py文件。
然后找到这个文件,运行:python get-pip.py
问题解决。

posted @ 2021-12-25 19:25  ---dgw博客  阅读(332)  评论(0编辑  收藏  举报