zoukankan      html  css  js  c++  java
  • 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
    问题解决。

  • 相关阅读:
    2017年第八蓝桥杯C/C++ A组国赛 —— 第二题:生命游戏
    451. 根据字符出现频率排序
    剑指 Offer 40. 最小的k个数
    list使用详解
    STL---priority_queue
    1046. 最后一块石头的重量
    739. 每日温度
    921. 使括号有效的最少添加
    STL----stack
    173. 二叉搜索树迭代器
  • 原文地址:https://www.cnblogs.com/dgwblog/p/15731269.html
Copyright © 2011-2022 走看看