[root@kvm6 ~]# yum install python27 python27-devel
[root@kvm6 ~]# yum install python27-pip
[root@kvm6 ~]# pip2.7 install mycli
Collecting mycli
Downloading https://files.pythonhosted.org/packages/f9/8a/
9f96f12b482ff2e1bbb1d4252e14b4a24ed37daa5b1dcd14c3d990eca9dd/
mycli-1.19.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 57kB 236kB/s
Collecting cryptography>=1.0.0 (from mycli)
Downloading https://files.pythonhosted.org/packages/07/ca/
bc827c5e55918ad223d59d299fff92f3563476c3b00d0a9157d9c0217449/
cryptography-2.6.1.tar.gz (491kB)
100% |████████████████████████████████| 495kB 499kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-8rU14l/cryptography/setup.py", line 28, in <module>
"cryptography requires setuptools 18.5 or newer, please upgrade to a "
RuntimeError: cryptography requires setuptools 18.5 or newer,
please upgrade to a newer version of setuptools
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8rU14l/cryptography
You are using pip version 7.1.2, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@kvm6 ~]# pip2.7 install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/d8/f3/
413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/
pip-19.0.3-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 202kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-19.0.3
[root@kvm6 ~]# pip2.7 install mycli
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020.
Please upgrade your Python as Python 2.7 won't be maintained after that date.
A future version of pip will drop support for Python 2.7.
Collecting mycli
Using cached https://files.pythonhosted.org/packages/f9/8a/
9f96f12b482ff2e1bbb1d4252e14b4a24ed37daa5b1dcd14c3d990eca9dd/mycli-1.19.0-py2.py3-none-any.whl
Collecting cryptography>=1.0.0 (from mycli)
100% |████████████████████████████████| 163kB 734kB/s
...........................
Installing collected packages: enum34, asn1crypto, six, pycparser, cffi, ipaddress,
cryptography, sqlparse, PyMySQL, click, backports.csv, wcwidth, tabulate, terminaltables,
configobj, Pygments, cli-helpers, prompt-toolkit, mycli
Running setup.py install for pycparser ... done
Running setup.py install for tabulate ... done
Running setup.py install for terminaltables ... done
Running setup.py install for configobj ... done
Successfully installed PyMySQL-0.9.3 Pygments-2.3.1 asn1crypto-0.24.0 backports.csv-1.0.7
cffi-1.12.2 cli-helpers-1.1.0 click-7.0 configobj-5.0.6 cryptography-2.6.1 enum34-1.1.6
ipaddress-1.0.22 mycli-1.19.0 prompt-toolkit-2.0.9 pycparser-2.19 six-1.12.0 sqlparse-0.2.4
tabulate-0.8.3 terminaltables-3.1.0 wcwidth-0.1.7
easy_install-2.7 安裝 mycli。
[root@kvm6 ~]# easy_install-2.7 mycli Searching for mycli Best match: mycli 1.19.0 Adding mycli 1.19.0 to easy-install.pth file Installing mycli script to /usr/bin Using /usr/lib/python2.7/site-packages Processing dependencies for mycli Finished processing dependencies for mycli