PIP installation Ipython Error Record
#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/srequirement 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.whlrequirement 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/srequirement 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.whlrequirement 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.whlcollecting 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.gzinstalling 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 "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 -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 "/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/
Workaround:
Yum install python-devel libxslt-devel libffi-devel openssl-devel gcc gcc-c++ kernel-devel
CentOS7 Installing Mysql-python Error
Workaround:
Yum install python-devel mysql-devel zlib-devel Openssl-deve
Profile: https://www.92ez.com/?action=show&id=23431
Centos 7.4 Installation Ipython and Mysql-python problems encountered