gpt4 book ai didi

python - 用于安装 channel 的 pip 安装错误

转载 作者:太空宇宙 更新时间:2023-11-03 14:50:32 26 4
gpt4 key购买 nike

当我运行这段代码时

sudo pip install channels

我遇到了这个错误:

running build_ext
building 'twisted.test.raiser' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/src
creating build/temp.linux-x86_64-3.5/src/twisted
creating build/temp.linux-x86_64-3.5/src/twisted/test
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-MLq5fN/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c src/twisted/test/raiser.c -o build/temp.linux-x86_64-3.5/src/twisted/test/raiser.o
src/twisted/test/raiser.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

最佳答案

这意味着您的系统中缺少某些软件包。

尝试安装这些包:

sudo apt-get install build-essential python-dev

如果不行,试试这个:

 sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev libssl-dev

关于python - 用于安装 channel 的 pip 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46120348/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com