设为首页 收藏本站
查看: 679|回复: 0

[经验分享] Centos 7.4 安装ipython和mysql

[复制链接]

尚未签到

发表于 2018-4-20 10:51:05 | 显示全部楼层 |阅读模式
  pip安装ipython报错记录
#pip install ipython==5.5.0

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 != &quot;win32&quot; in /usr/lib/python2.7/site-packages (from ipython==5.5.0)
Collecting pathlib2; python_version == &quot;2.7&quot; or python_version == &quot;3.3&quot; (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 == &quot;2.7&quot; 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 < &quot;3.5&quot; (from pathlib2; python_version == &quot;2.7&quot; or python_version == &quot;3.3&quot;->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 -u -c &quot;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'))&quot; 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 -g -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 -g -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 &quot;/usr/bin/python2 -u -c &quot;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'))&quot; install --record /tmp/pip-XwbXPl-record/install-record.txt --single-version-externally-managed --compile&quot; 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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-449551-1-1.html 上篇帖子: 基于 CentOS 7 搭建 GitLab-dek的博客 下篇帖子: Centos 7 快速安装zabbix3
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表