zoukankan      html  css  js  c++  java
  • error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c src/twisted/test/raiser.c -o build/temp.linux-x86_64-3.6/src/twisted/test/raiser.o
        src/twisted/test/raiser.c:4:20: fatal error: Python.h: 没有那个文件或目录
        compilation terminated.
        error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
        
        ----------------------------------------
    Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-qyq4blk1/Twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace(' ', ' ');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-s8aq18x_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-qyq4blk1/Twisted/                                                 

    执行下面代码安装其依赖库即可

    sudo apt install python3.6-dev

  • 相关阅读:
    为什么C++(感谢waterwalk翻译)
    容器操作笔记
    如此理解面向对象编程
    C++初学者小细节(不定时更新)
    Sales_item 专题
    10步让你成为更优秀的程序员
    C++ PRIMER 笔记
    C++ 异常处理
    透明度 rgba 和 opacity 的区别
    盒模型
  • 原文地址:https://www.cnblogs.com/ice-image/p/10422047.html
Copyright © 2011-2022 走看看