下面是安装pyspider的详细过程及相关指令【纪实】
-----------------------------------------------------------------------------------------------------------------------------------------------------
*****************************************************************************************************************************************************
-----------------------------------------------------------------------------------------------------------------------------------------------------
[root@iZ28jyxu47dZ fancy]# pip install pyspider
Collecting pyspider
/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading pyspider-0.3.5.tar.gz (94kB)
100% |████████████████████████████████| 98kB 41kB/s
Collecting Flask>=0.10 (from pyspider)
Downloading Flask-0.10.1.tar.gz (544kB)
15% |████▉ | 81kB 250bytes/s eta 0:30:44
Hash of the package https://pypi.python.org/packages/source/F/Flask/Flask-0.10.1.tar.gz#md5=378670fe456957eb3c27ddaef60b2b24 (from https://pypi.python.org/simple/flask/) (e11c5569eb68d582ce1c85154b9b48c9) doesn't match the expected hash 378670fe456957eb3c27ddaef60b2b24!
Bad md5 hash for package https://pypi.python.org/packages/source/F/Flask/Flask-0.10.1.tar.gz#md5=378670fe456957eb3c27ddaef60b2b24 (from https://pypi.python.org/simple/flask/)
[root@iZ28jyxu47dZ fancy]# yum install python-devel libffi-devel openssl-devel
Loaded plugins: langpacks
base | 3.6 kB 00:00
epel | 4.3 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/7): epel/x86_64/group_gz | 169 kB 00:00
(2/7): base/7/x86_64/group_gz | 154 kB 00:00
(3/7): epel/x86_64/updateinfo | 361 kB 00:00
(4/7): extras/7/x86_64/primary_db | 87 kB 00:00
(5/7): epel/x86_64/primary_db | 3.5 MB 00:00
(6/7): base/7/x86_64/primary_db | 5.1 MB 00:01
(7/7): updates/7/x86_64/primary_db | 4.0 MB 00:00
Resolving Dependencies
--> Running transaction check
---> Package libffi-devel.x86_64 0:3.0.13-11.el7 will be installed
---> Package openssl-devel.x86_64 1:1.0.1e-42.el7.9 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-42.el7.9 for package: 1:openssl-devel-1.0.1e-42.el7.9.x86_64
--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.1e-42.el7.9.x86_64
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.1e-42.el7.9.x86_64
---> Package python-devel.x86_64 0:2.7.5-18.el7_1.1 will be installed
--> Processing Dependency: python(x86-64) = 2.7.5-18.el7_1.1 for package: python-devel-2.7.5-18.el7_1.1.x86_64
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.12.2-15.el7_1 will be installed
--> Processing Dependency: krb5-libs(x86-64) = 1.12.2-15.el7_1 for package: krb5-devel-1.12.2-15.el7_1.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.12.2-15.el7_1.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.12.2-15.el7_1.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.12.2-15.el7_1.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.12.2-15.el7_1.x86_64
--> Processing Dependency: libkadm5srv_mit.so.9()(64bit) for package: krb5-devel-1.12.2-15.el7_1.x86_64
---> Package openssl-libs.x86_64 1:1.0.1e-34.el7_0.7 will be updated
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-34.el7_0.7 for package: 1:openssl-1.0.1e-34.el7_0.7.x86_64
---> Package openssl-libs.x86_64 1:1.0.1e-42.el7.9 will be an update
---> Package python.x86_64 0:2.7.5-16.el7 will be updated
---> Package python.x86_64 0:2.7.5-18.el7_1.1 will be an update
--> Processing Dependency: python-libs(x86-64) = 2.7.5-18.el7_1.1 for package: python-2.7.5-18.el7_1.1.x86_64
---> Package zlib-devel.x86_64 0:1.2.7-13.el7 will be installed
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package krb5-libs.x86_64 0:1.11.3-49.el7 will be updated
---> Package krb5-libs.x86_64 0:1.12.2-15.el7_1 will be an update
---> Package libcom_err-devel.x86_64 0:1.42.9-7.el7 will be installed
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: libcom_err-devel-1.42.9-7.el7.x86_64
---> Package libselinux-devel.x86_64 0:2.2.2-6.el7 will be installed
--> Processing Dependency: libsepol-devel >= 2.1.9-1 for package: libselinux-devel-2.2.2-6.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.2.2-6.el7.x86_64
--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.2.2-6.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
---> Package openssl.x86_64 1:1.0.1e-34.el7_0.7 will be updated
---> Package openssl.x86_64 1:1.0.1e-42.el7.9 will be an update
---> Package python-libs.x86_64 0:2.7.5-16.el7 will be updated
---> Package python-libs.x86_64 0:2.7.5-18.el7_1.1 will be an update
--> Running transaction check
---> Package libcom_err.x86_64 0:1.42.9-4.el7 will be updated
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-4.el7 for package: e2fsprogs-1.42.9-4.el7.x86_64
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-4.el7 for package: e2fsprogs-libs-1.42.9-4.el7.x86_64
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-4.el7 for package: libss-1.42.9-4.el7.x86_64
---> Package libcom_err.x86_64 0:1.42.9-7.el7 will be an update
---> Package libsepol-devel.x86_64 0:2.1.9-3.el7 will be installed
---> Package pcre-devel.x86_64 0:8.32-14.el7 will be installed
--> Processing Dependency: pcre(x86-64) = 8.32-14.el7 for package: pcre-devel-8.32-14.el7.x86_64
--> Running transaction check
---> Package e2fsprogs.x86_64 0:1.42.9-4.el7 will be updated
---> Package e2fsprogs.x86_64 0:1.42.9-7.el7 will be an update
---> Package e2fsprogs-libs.x86_64 0:1.42.9-4.el7 will be updated
---> Package e2fsprogs-libs.x86_64 0:1.42.9-7.el7 will be an update
---> Package libss.x86_64 0:1.42.9-4.el7 will be updated
---> Package libss.x86_64 0:1.42.9-7.el7 will be an update
---> Package pcre.x86_64 0:8.32-12.el7 will be updated
---> Package pcre.x86_64 0:8.32-14.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libffi-devel x86_64 3.0.13-11.el7 base 22 k
openssl-devel x86_64 1:1.0.1e-42.el7.9 updates 1.2 M
python-devel x86_64 2.7.5-18.el7_1.1 updates 389 k
Installing for dependencies:
keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
krb5-devel x86_64 1.12.2-15.el7_1 updates 641 k
libcom_err-devel x86_64 1.42.9-7.el7 base 30 k
libselinux-devel x86_64 2.2.2-6.el7 base 174 k
libsepol-devel x86_64 2.1.9-3.el7 base 71 k
libverto-devel x86_64 0.2.5-4.el7 base 12 k
pcre-devel x86_64 8.32-14.el7 base 477 k
zlib-devel x86_64 1.2.7-13.el7 base 49 k
Updating for dependencies:
e2fsprogs x86_64 1.42.9-7.el7 base 697 k
e2fsprogs-libs x86_64 1.42.9-7.el7 base 165 k
krb5-libs x86_64 1.12.2-15.el7_1 updates 826 k
libcom_err x86_64 1.42.9-7.el7 base 40 k
libss x86_64 1.42.9-7.el7 base 45 k
openssl x86_64 1:1.0.1e-42.el7.9 updates 711 k
openssl-libs x86_64 1:1.0.1e-42.el7.9 updates 949 k
pcre x86_64 8.32-14.el7 base 418 k
python x86_64 2.7.5-18.el7_1.1 updates 86 k
python-libs x86_64 2.7.5-18.el7_1.1 updates 5.6 M
Transaction Summary
================================================================================
Install 3 Packages (+ 8 Dependent packages)
Upgrade ( 10 Dependent packages)
Total download size: 12 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/21): e2fsprogs-libs-1.42.9-7.el7.x86_64.rpm | 165 kB 00:00
(2/21): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00
(3/21): libcom_err-1.42.9-7.el7.x86_64.rpm | 40 kB 00:00
(4/21): libcom_err-devel-1.42.9-7.el7.x86_64.rpm | 30 kB 00:00
(5/21): libffi-devel-3.0.13-11.el7.x86_64.rpm | 22 kB 00:00
(6/21): libselinux-devel-2.2.2-6.el7.x86_64.rpm | 174 kB 00:00
(7/21): libsepol-devel-2.1.9-3.el7.x86_64.rpm | 71 kB 00:00
(8/21): e2fsprogs-1.42.9-7.el7.x86_64.rpm | 697 kB 00:00
(9/21): libss-1.42.9-7.el7.x86_64.rpm | 45 kB 00:00
(10/21): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:00
(11/21): krb5-devel-1.12.2-15.el7_1.x86_64.rpm | 641 kB 00:00
(12/21): openssl-1.0.1e-42.el7.9.x86_64.rpm | 711 kB 00:00
(13/21): krb5-libs-1.12.2-15.el7_1.x86_64.rpm | 826 kB 00:00
(14/21): openssl-libs-1.0.1e-42.el7.9.x86_64.rpm | 949 kB 00:00
(15/21): openssl-devel-1.0.1e-42.el7.9.x86_64.rpm | 1.2 MB 00:00
(16/21): python-2.7.5-18.el7_1.1.x86_64.rpm | 86 kB 00:00
(17/21): python-devel-2.7.5-18.el7_1.1.x86_64.rpm | 389 kB 00:00
(18/21): pcre-devel-8.32-14.el7.x86_64.rpm | 477 kB 00:00
(19/21): zlib-devel-1.2.7-13.el7.x86_64.rpm | 49 kB 00:00
(20/21): pcre-8.32-14.el7.x86_64.rpm | 418 kB 00:00
(21/21): python-libs-2.7.5-18.el7_1.1.x86_64.rpm | 5.6 MB 00:01
--------------------------------------------------------------------------------
Total 5.1 MB/s | 12 MB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : libcom_err-1.42.9-7.el7.x86_64 1/31
Updating : 1:openssl-libs-1.0.1e-42.el7.9.x86_64 2/31
Updating : krb5-libs-1.12.2-15.el7_1.x86_64 3/31
Updating : python-libs-2.7.5-18.el7_1.1.x86_64 4/31
Updating : python-2.7.5-18.el7_1.1.x86_64 5/31
Updating : e2fsprogs-libs-1.42.9-7.el7.x86_64 6/31
Updating : libss-1.42.9-7.el7.x86_64 7/31
Installing : libcom_err-devel-1.42.9-7.el7.x86_64 8/31
Installing : zlib-devel-1.2.7-13.el7.x86_64 9/31
Updating : pcre-8.32-14.el7.x86_64 10/31
Installing : pcre-devel-8.32-14.el7.x86_64 11/31
Installing : libverto-devel-0.2.5-4.el7.x86_64 12/31
Installing : libsepol-devel-2.1.9-3.el7.x86_64 13/31
Installing : libselinux-devel-2.2.2-6.el7.x86_64 14/31
Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 15/31
Installing : krb5-devel-1.12.2-15.el7_1.x86_64 16/31
Installing : 1:openssl-devel-1.0.1e-42.el7.9.x86_64 17/31
Updating : e2fsprogs-1.42.9-7.el7.x86_64 18/31
Installing : python-devel-2.7.5-18.el7_1.1.x86_64 19/31
Updating : 1:openssl-1.0.1e-42.el7.9.x86_64 20/31
Installing : libffi-devel-3.0.13-11.el7.x86_64 21/31
Cleanup : 1:openssl-1.0.1e-34.el7_0.7.x86_64 22/31
Cleanup : e2fsprogs-1.42.9-4.el7.x86_64 23/31
Cleanup