当前位置: 首页 > news >正文

Centos 7.4 安装ipython和mysql-python遇到的问题

pip安装ipython报错记录
#pip install ipython==5.5.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Collecting ipython = = 5.5 . 0
   Downloading http: / / mirrors.aliyun.com / pypi / packages / 08 / 2c / 6285504003b4eadce5540f3ee3adc081468b26723f3eef07d9d5d7d97ed8 / ipython - 5.5 . 0 - py2 - none - any .whl ( 758kB )
     100 %  |████████████████████████████████|  768kB  3.9MB / s
Requirement already satisfied: pygments  in  / usr / lib64 / python2. 7 / site - packages ( from  ipython = = 5.5 . 0 )
Requirement already satisfied: setuptools> = 18.5  in  / usr / lib / python2. 7 / site - packages ( from  ipython = = 5.5 . 0 )
Requirement already satisfied: backports.shutil - get - terminal - size; python_version  = =  "2.7"  in  / usr / lib / python2. 7 / site - packages ( from  ipython = = 5.5 . 0 )
Requirement already satisfied: traitlets> = 4.2  in  / usr / lib / python2. 7 / site - packages ( from  ipython = = 5.5 . 0 )
Requirement already satisfied: simplegeneric> 0.8  in  / usr / lib / python2. 7 / site - packages ( from  ipython = = 5.5 . 0 )
Collecting pickleshare ( from  ipython = = 5.5 . 0 )
   Downloading http: / / mirrors.aliyun.com / pypi / packages / 9f / 17 / daa142fc9be6b76f26f24eeeb9a138940671490b91cb5587393f297c8317 / pickleshare - 0.7 . 4 - py2.py3 - none - any .whl
Requirement already satisfied: decorator  in  / usr / lib / python2. 7 / site - packages ( from  ipython = = 5.5 . 0 )
Collecting prompt - toolkit< 2.0 . 0 ,> = 1.0 . 4  ( from  ipython = = 5.5 . 0 )
   Downloading http: / / mirrors.aliyun.com / pypi / packages / d1 / b0 / 1a6c262da35c779dd79550137aa7c298a424987240a28792ec5ccf48f848 / prompt_toolkit - 1.0 . 15 - py2 - none - any .whl ( 247kB )
     100 %  |████████████████████████████████|  256kB  61.8MB / s
Requirement already satisfied: pexpect; sys_platform ! =  "win32"  in  / usr / lib / python2. 7 / site - packages ( from  ipython = = 5.5 . 0 )
Collecting pathlib2; python_version  = =  "2.7"  or  python_version  = =  "3.3"  ( from  ipython = = 5.5 . 0 )
   Downloading http: / / mirrors.aliyun.com / pypi / packages / 74 / 4e / 68add57f8b993bb5da70c22c7eebb4266c7b66cab15095a1578cc6a62b1a / pathlib2 - 2.3 . 0 - py2.py3 - none - any .whl
Requirement already satisfied: ipython - genutils  in  / usr / lib / python2. 7 / site - packages ( from  traitlets> = 4.2 - >ipython = = 5.5 . 0 )
Requirement already satisfied: enum34; python_version  = =  "2.7"  in  / usr / lib / python2. 7 / site - packages ( from  traitlets> = 4.2 - >ipython = = 5.5 . 0 )
Requirement already satisfied: six  in  / usr / lib / python2. 7 / site - packages ( from  traitlets> = 4.2 - >ipython = = 5.5 . 0 )
Collecting wcwidth ( from  prompt - toolkit< 2.0 . 0 ,> = 1.0 . 4 - >ipython = = 5.5 . 0 )
   Downloading http: / / mirrors.aliyun.com / pypi / packages / 7e / 9f / 526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe / wcwidth - 0.1 . 7 - py2.py3 - none - any .whl
Collecting scandir; python_version <  "3.5"  ( from  pathlib2; python_version  = =  "2.7"  or  python_version  = =  "3.3" - >ipython = = 5.5 . 0 )
   Downloading http: / / mirrors.aliyun.com / pypi / packages / 77 / 3f / 916f524f50ee65e3f465a280d2851bd63685250fddb3020c212b3977664d / scandir - 1.6 .tar.gz
Installing collected packages: scandir, pathlib2, pickleshare, wcwidth, prompt - toolkit, ipython
   Running setup.py install  for  scandir ... error
     Complete output  from  command  / usr / bin / python2  - - "import setuptools, tokenize;__file__='/tmp/pip-build-Ezagxu/scandir/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 - XwbXPl - record / install - record.txt  - - single - version - externally - managed  - - compile :
     running install
     running build
     running build_py
     creating build
     creating build / lib.linux - x86_64 - 2.7
     copying scandir.py  - > build / lib.linux - x86_64 - 2.7
     running build_ext
     building  '_scandir'  extension
     creating build / temp.linux - x86_64 - 2.7
     gcc  - pthread  - fno - strict - aliasing  - O2  - - pipe  - Wall  - Wp, - D_FORTIFY_SOURCE = 2  - fexceptions  - fstack - protector - strong  - - param = ssp - buffer - size = 4  - grecord - gcc - switches  - m64  - mtune = generic  - D_GNU_SOURCE  - fPIC  - fwrapv  - DNDEBUG  - O2  - - pipe  - Wall  - Wp, - D_FORTIFY_SOURCE = 2  - fexceptions  - fstack - protector - strong  - - param = ssp - buffer - size = 4  - grecord - gcc - switches  - m64  - mtune = generic  - D_GNU_SOURCE  - fPIC  - fwrapv  - fPIC  - I / usr / include / python2. 7  - c _scandir.c  - o build / temp.linux - x86_64 - 2.7 / _scandir.o
     _scandir.c: 14 : 20 : fatal error: Python.h: No such  file  or  directory
      #include <Python.h>
                         ^
     compilation terminated.
     error: command  'gcc'  failed with exit status  1
     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Command  "/usr/bin/python2 -u -c " import  setuptools, tokenize;__file__ = '/tmp/pip-build-Ezagxu/scandir/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-XwbXPl-record/install-record.txt --single-version-externally-managed --compile"  failed with error code  1  in  / tmp / pip - build - Ezagxu / scandir /

解决方法:
yum install python-devel libxslt-devel libffi-devel openssl-devel gcc gcc-c++ kernel-devel


CentOS7安装MySQL-python出错

解决方法:

yum install python-devel mysql-devel zlib-devel openssl-deve


资料:https://www.92ez.com/?action=show&id=23431


本文转自 boy461205160 51CTO博客,原文链接:http://blog.51cto.com/461205160/2047763


相关文章:

  • Windows XP SP3 升级故障汇总
  • 【VC+图像】图片批量处理
  • SVN 的使用(一) 命令行模式
  • 为什么我们需要域?Active Directory系列之一
  • 【实战】锐捷AC+AP配置WLAN基本服务系列
  • 精品IT资源分享
  • JS实现动态显示当前时间(12/24小时制)(转载Mr.Think)
  • SQL注入神器——sqlmap
  • scp从多台机器上批量下载文件到本机(升级版)
  • WordPress的url链接带“/”反斜杠
  • 解决C3P0在Linux下Failed to get local InetAddress for VMID问题
  • Surface 2.0 SDK在WPF中应用
  • 基于GNS3的独臂路由配置
  • DevExpress XtraReports 入门二 创建 data-aware(数据感知) 报表
  • Python基础之面向对象
  • iOS帅气加载动画、通知视图、红包助手、引导页、导航栏、朋友圈、小游戏等效果源码...
  • Java 内存分配及垃圾回收机制初探
  • Redux 中间件分析
  • vue从创建到完整的饿了么(18)购物车详细信息的展示与删除
  • vue脚手架vue-cli
  • Vue全家桶实现一个Web App
  • 第十八天-企业应用架构模式-基本模式
  • 机器学习中为什么要做归一化normalization
  • 面试遇到的一些题
  • 前端临床手札——文件上传
  • 深度解析利用ES6进行Promise封装总结
  • 详解NodeJs流之一
  • 一天一个设计模式之JS实现——适配器模式
  • 一些css基础学习笔记
  • 职业生涯 一个六年开发经验的女程序员的心声。
  • 追踪解析 FutureTask 源码
  • 看到一个关于网页设计的文章分享过来!大家看看!
  • Prometheus VS InfluxDB
  • python最赚钱的4个方向,你最心动的是哪个?
  • 如何用纯 CSS 创作一个货车 loader
  • ​卜东波研究员:高观点下的少儿计算思维
  • #define用法
  • #if #elif #endif
  • #includecmath
  • #Lua:Lua调用C++生成的DLL库
  • (16)UiBot:智能化软件机器人(以头歌抓取课程数据为例)
  • (3)(3.2) MAVLink2数据包签名(安全)
  • (Bean工厂的后处理器入门)学习Spring的第七天
  • (TOJ2804)Even? Odd?
  • (附源码)springboot 个人网页的网站 毕业设计031623
  • (附源码)springboot“微印象”在线打印预约系统 毕业设计 061642
  • (力扣题库)跳跃游戏II(c++)
  • (转)Oracle存储过程编写经验和优化措施
  • .NET 4.0网络开发入门之旅-- 我在“网” 中央(下)
  • .net core 控制台应用程序读取配置文件app.config
  • .Net IE10 _doPostBack 未定义
  • .net mvc部分视图
  • .NET/C# 判断某个类是否是泛型类型或泛型接口的子类型
  • .pop ----remove 删除
  • @TableLogic注解说明,以及对增删改查的影响