ubuntu安装python3.6.7_于在Python3.6.7 +Ubuntu16.04下安装channels报错
报错类型: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
...................................
warning: no previously-included files matching '*.misc' found under directory 'src/twisted'
warning: no previously-included files matching '*.bugfix' found under directory 'src/twisted'
warning: no previously-included files matching '*.doc' found under directory 'src/twisted'
warning: no previously-included files matching '*.feature' found under directory 'src/twisted'
warning: no previously-included files matching '*.removal' found under directory 'src/twisted'
warning: no previously-included files matching 'NEWS' found under directory 'src/twisted'
warning: no previously-included files matching 'README' found under directory 'src/twisted'
warning: no previously-included files matching 'newsfragments' found under directory 'src/twisted'
warning: no previously-included files found matching 'src/twisted/topfiles/CREDITS'
warning: no previously-included files found matching 'src/twisted/topfiles/ChangeLog.Old'
warning: no previously-included files found matching 'pyproject.toml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching '.circleci'
warning: no previously-included files matching '*' found under directory '.circleci'
no previously-included directories found matching 'bin'
no previously-included directories found matching 'admin'
no previously-included directories found matching '.travis'
no previously-included directories found matching '.github'
warning: no previously-included files found matching 'docs/historic/2003'
warning: no previously-included files matching '*' found under directory 'docs/historic/2003'
writing manifest file 'src/Twisted.egg-info/SOURCES.txt'
copying src/twisted/python/twisted-completion.zsh -> build/lib.linux-x86_64-3.6/twisted/python
creating build/lib.linux-x86_64-3.6/twisted/python/_pydoctortemplates
copying src/twisted/python/_pydoctortemplates/common.html -> build/lib.linux-x86_64-3.6/twisted/python/_pydoctortemplates
copying src/twisted/python/_pydoctortemplates/index.html -> build/lib.linux-x86_64-3.6/twisted/python/_pydoctortemplates
copying src/twisted/python/_pydoctortemplates/summary.html -> build/lib.linux-x86_64-3.6/twisted/python/_pydoctortemplates
copying src/twisted/test/cert.pem.no_trailing_newline -> build/lib.linux-x86_64-3.6/twisted/test
copying src/twisted/test/key.pem.no_trailing_newline -> build/lib.linux-x86_64-3.6/twisted/test
copying src/twisted/test/server.pem -> build/lib.linux-x86_64-3.6/twisted/test
copying src/twisted/mail/test/rfc822.message -> build/lib.linux-x86_64-3.6/twisted/mail/test
copying src/twisted/python/test/_deprecatetests.py.3only -> build/lib.linux-x86_64-3.6/twisted/python/test
copying src/twisted/words/im/instancemessenger.glade -> build/lib.linux-x86_64-3.6/twisted/words/im
copying src/twisted/words/xish/xpathparser.g -> build/lib.linux-x86_64-3.6/twisted/words/xish
copying src/twisted/internet/iocpreactor/notes.txt -> build/lib.linux-x86_64-3.6/twisted/internet/iocpreactor
copying src/twisted/internet/test/_awaittests.py.3only -> build/lib.linux-x86_64-3.6/twisted/internet/test
copying src/twisted/internet/test/_yieldfromtests.py.3only -> build/lib.linux-x86_64-3.6/twisted/internet/test
creating build/lib.linux-x86_64-3.6/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/chain.pem -> build/lib.linux-x86_64-3.6/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/not-a-certificate -> build/lib.linux-x86_64-3.6/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/thing1.pem -> build/lib.linux-x86_64-3.6/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/thing2-duplicate.pem -> build/lib.linux-x86_64-3.6/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/thing2.pem -> build/lib.linux-x86_64-3.6/twisted/internet/test/fake_CAs
running build_ext
building 'twisted.test.raiser' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
creating build/temp.linux-x86_64-3.6/src/twisted
creating build/temp.linux-x86_64-3.6/src/twisted/test
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/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-e6p918pk/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jo3m5dbj/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-e6p918pk/twisted/
我尝试了博客上的好多方法都失败了,最后总结了两个,尝试了一下成功了
1.#sudo apt-get install python3.6-gdbm
2.#sudo apt-get install python3.6-dev
因为ubuntu16.04自带Python2.7和Python3.5,打开channels官网会有最新版的channels==2.1.7,Python2.7支持channels==1.8,所以在用Python2.7时会有好多包函数无法导入,于是下载了Python3.6,,问题解决。
ubuntu安装python3.6.7_于在Python3.6.7 +Ubuntu16.04下安装channels报错相关推荐
- wepe 装linux ubuntu,Ubuntu16.04下安装Wechat的实现方法
Ubuntu16.04下安装Wechat 很久没写博客了,前两天电脑因为teamviewer不了,原因显示是libqt5gui5版本过低,研究了一波更新,卸载了libqt5gui5,和它的依赖qtba ...
- Ubuntu16.04下安装tensorflow(CPU)spyder+pycharm
1.下载并安装Anaconda 1.1 下载 从Anaconda官网(https://www.continuum.io/downloads)上下载Linux版本 https://repo.contin ...
- Ubuntu16.04 下安装 Teamviewer 远程控制软件
TeamViewer软件介绍: TeamViewer是一个能在任何防火墙和NAT代理的后台用于远程控制的应用程序,桌面共享和文件传输的简单且快速的解决方案.为了连接到另一台计算机,只需要在两台计算机上 ...
- 【踩坑】Ubuntu16.04下安装Tenda U6无线网卡驱动
Ubuntu <Ubuntu16.04下安装Tenda U6无线网卡驱动>和<18.04安装腾达Tanda U6无线网卡(RTL8192EU)驱动 >1<Tenda U9 ...
- 在ubuntu16.04下安装opencv4.1.1(借鉴多篇的成果,爬了些许坑)(001)
在ubuntu16.04下安装opencv4.1.1(借鉴多篇的成果,爬了些许坑) 一 下载 先去github上下载对应的opencv版本和opencv_contrib版本,我下载的是opencv4. ...
- ubuntu16.04 下安装Opencv2.4.9
ubuntu16.04 下安装Opencv2.4.9 OpenCV的源码download from: https://sourceforge.net/projects/opencvlibrary/? ...
- ubuntu16.04下安装openssh-server报依赖错误的解决方法
ubuntu16.04下安装openssh-server报依赖错误的解决方法 参考文章: (1)ubuntu16.04下安装openssh-server报依赖错误的解决方法 (2)https://ww ...
- Ubuntu16.04下安装有道翻译
Ubuntu16.04下安装有道翻译 参考: https://www.cnblogs.com/pursuiting/p/6194682.html 下载并安装3个依赖包 下载并安装有道词典 下载并安装3 ...
- ubuntu16.04下安装企业微信和微信(实测能用)
ubuntu16.04下安装企业微信和微信(实测能用) 安装deepin 安装企业微信 安装微信 安装deepin 第一步: git clone https://gitee.com/wszqkzqk/ ...
- (已解决) 境内 Ubuntu16.04 下安装 ROS kinetic 时 rosdep update 超时报错: The handshake operation timed out
- 2021.12.9 更新 - 系统: Ubuntu 16.04 使用有线网, ubuntu源是阿里云镜像源. 问题描述: 按照官网教程安装 ROS kinetic 时, 在 sudo rosdep ...
最新文章
- 深度学习--TensorFlow(项目)Keras手写数字识别
- git checkout和git reset的一些区别以及配置git简写命令
- linux怎么改程序图标,如何在Ubuntu Unity上更换应用程序图标
- 浅谈Android布局
- MySql 数据库基本设计规范
- MySQL中rename一个view对应的SQL语句
- 工业级多用户博客系统
- dbcc dbreindex server sql_SQL Server性能的提高,可通过DBCC DBREINDEX重建索引
- element 输入框点击事件_Element Input输入框的使用方法
- bzoj 3385: [Usaco2004 Nov]Lake Counting 数池塘(DFS)
- dosbox中out of memory_flink教程-详解flink 1.11 中的JDBC Catalog
- 61850协议服务器端开发,IEC61850中报告服务端开发
- 用技术去掉搜索引擎中的死链接
- 优化网站提高打开速度
- SQLServer -ServiceBroker
- 如何在百度地图上标注宾馆饭店(矢量点标注)并导出为图片
- 斑马GK888t 通过IP访问连接
- 802.11ac深度技术分析
- 爱看小说手机网源码全站带3w数据带采集,ThinkPHP内核小说网站源码带听书等全部插件
- Nao机器人如何实现视频监控
热门文章
- IFS发布新版本9 让敏捷性成为企业的标配
- hfss软件linux版,hfss15.0|Ansoft HFSS 15下载v15.0.1官方免费版 - 欧普软件下载
- mui.plusReady()方法不执行
- JAVA设计模式什么鬼(单例)——作者:凸凹里歐
- html怎么把字做成动画效果,如何使用HTML5 css3实现粒子效果文字动画特效(附完整代码)...
- 操作系统学习笔记——北京大学陈向群老师课后及习题答案(7)
- linux 动态图片制作,Ubuntu 17.10下使用kazam制作gif动态图片
- MZB01慢直播-如何循环直播录好的视频文件
- vista系统服务器,Windows VISTA操作系统各发行版本详尽介绍
- jsp中文件上床的enctype=multipart/form-data用法