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
问题解决。