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
問題解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章