Linux的操作系统在装好后,默认会带Python2的支持。
但是,并没有包含PIP的支持。

因此,PIP需要自行安装。

但是,如果你的Python是2的版本,你想要安装PIP,直接运行【get-pip.py】很可能会遇到各种问题:
1. http://d-prototype.com/archives/13663
2. http://d-prototype.com/archives/13664

正确的做法是,下载对应的Python版本的【get-pip.py】的脚本。

如果你觉得这个过程很烦,.. 那么你可以用我的脚本自动的去安装:

脚本执行效果如下:

为了演示,Linux先卸载PIP:

[root@localhost ~]# pip uninstall pip
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Uninstalling pip-9.0.3:
  /usr/bin/pip
  /usr/bin/pip2
  /usr/bin/pip2.6
  /usr/lib/python2.6/site-packages/pip-9.0.3.dist-info/DESCRIPTION.rst
  /usr/lib/python2.6/site-packages/pip-9.0.3.dist-info/INSTALLER
  /usr/lib/python2.6/site-packages/pip-9.0.3.dist-info/METADATA
  /usr/lib/python2.6/site-packages/pip-9.0.3.dist-info/RECORD
  /usr/lib/python2.6/site-packages/pip-9.0.3.dist-info/WHEEL
  /usr/lib/python2.6/site-packages/pip-9.0.3.dist-info/entry_points.txt
  /usr/lib/python2.6/site-packages/pip-9.0.3.dist-info/metadata.json
  /usr/lib/python2.6/site-packages/pip-9.0.3.dist-info/top_level.txt
  /usr/lib/python2.6/site-packages/pip/__init__.py
  /usr/lib/python2.6/site-packages/pip/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/__main__.py
  /usr/lib/python2.6/site-packages/pip/__main__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/appdirs.py
  /usr/lib/python2.6/site-packages/pip/_vendor/appdirs.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/_cmd.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/_cmd.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/adapter.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/adapter.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/cache.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/cache.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/caches/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/caches/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/caches/file_cache.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/compat.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/compat.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/controller.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/controller.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/filewrapper.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/filewrapper.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/heuristics.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/heuristics.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/serialize.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/serialize.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/wrapper.py
  /usr/lib/python2.6/site-packages/pip/_vendor/cachecontrol/wrapper.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/certifi/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/certifi/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/certifi/__main__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/certifi/__main__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/certifi/cacert.pem
  /usr/lib/python2.6/site-packages/pip/_vendor/certifi/core.py
  /usr/lib/python2.6/site-packages/pip/_vendor/certifi/core.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/big5freq.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/big5freq.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/big5prober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/big5prober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/chardistribution.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/chardistribution.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/charsetgroupprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/charsetgroupprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/charsetprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/charsetprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/cli/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/cli/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/cli/chardetect.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/cli/chardetect.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/codingstatemachine.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/codingstatemachine.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/compat.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/compat.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/cp949prober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/cp949prober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/enums.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/enums.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/escprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/escprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/escsm.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/escsm.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/eucjpprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/eucjpprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/euckrfreq.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/euckrfreq.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/euckrprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/euckrprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/euctwfreq.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/euctwfreq.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/euctwprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/euctwprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/gb2312freq.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/gb2312freq.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/gb2312prober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/gb2312prober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/hebrewprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/hebrewprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/jisfreq.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/jisfreq.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/jpcntx.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/jpcntx.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langbulgarianmodel.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langbulgarianmodel.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langcyrillicmodel.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langcyrillicmodel.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langgreekmodel.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langgreekmodel.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langhebrewmodel.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langhebrewmodel.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langhungarianmodel.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langhungarianmodel.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langthaimodel.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langthaimodel.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langturkishmodel.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/langturkishmodel.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/latin1prober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/latin1prober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/mbcharsetprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/mbcharsetprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/mbcsgroupprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/mbcsgroupprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/mbcssm.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/mbcssm.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/sbcharsetprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/sbcharsetprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/sbcsgroupprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/sbcsgroupprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/sjisprober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/sjisprober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/universaldetector.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/universaldetector.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/utf8prober.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/utf8prober.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/version.py
  /usr/lib/python2.6/site-packages/pip/_vendor/chardet/version.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/ansi.py
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/ansi.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/ansitowin32.py
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/ansitowin32.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/initialise.py
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/initialise.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/win32.py
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/win32.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/winterm.py
  /usr/lib/python2.6/site-packages/pip/_vendor/colorama/winterm.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/misc.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/misc.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/shutil.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/shutil.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/sysconfig.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/tarfile.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/_backport/tarfile.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/compat.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/compat.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/database.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/database.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/index.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/index.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/locators.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/locators.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/manifest.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/manifest.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/markers.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/markers.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/metadata.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/metadata.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/resources.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/resources.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/scripts.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/scripts.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/t32.exe
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/t64.exe
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/util.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/util.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/version.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/version.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/w32.exe
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/w64.exe
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/wheel.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distlib/wheel.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/distro.py
  /usr/lib/python2.6/site-packages/pip/_vendor/distro.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_ihatexml.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_ihatexml.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_inputstream.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_inputstream.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_tokenizer.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_tokenizer.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_trie/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_trie/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_trie/_base.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_trie/_base.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_trie/datrie.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_trie/datrie.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_trie/py.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_trie/py.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_utils.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/_utils.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/constants.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/constants.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/base.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/base.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/lint.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/lint.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/optionaltags.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/optionaltags.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/sanitizer.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/sanitizer.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/whitespace.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/filters/whitespace.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/html5parser.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/html5parser.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/serializer.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/serializer.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treeadapters/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treeadapters/genshi.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treeadapters/sax.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treeadapters/sax.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/base.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/base.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/dom.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/etree.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/etree.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/base.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/base.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/dom.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/dom.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/etree.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/etree.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/genshi.py
  /usr/lib/python2.6/site-packages/pip/_vendor/html5lib/treewalkers/genshi.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/codec.py
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/codec.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/compat.py
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/compat.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/core.py
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/core.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/idnadata.py
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/idnadata.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/intranges.py
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/intranges.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/package_data.py
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/package_data.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/uts46data.py
  /usr/lib/python2.6/site-packages/pip/_vendor/idna/uts46data.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/ipaddress.py
  /usr/lib/python2.6/site-packages/pip/_vendor/ipaddress.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/linklockfile.py
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/linklockfile.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/mkdirlockfile.py
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/mkdirlockfile.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/pidlockfile.py
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/pidlockfile.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/sqlitelockfile.py
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/sqlitelockfile.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/symlinklockfile.py
  /usr/lib/python2.6/site-packages/pip/_vendor/lockfile/symlinklockfile.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/ordereddict.py
  /usr/lib/python2.6/site-packages/pip/_vendor/ordereddict.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/__about__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/__about__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/_compat.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/_compat.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/_structures.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/_structures.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/markers.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/markers.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/requirements.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/requirements.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/specifiers.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/specifiers.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/utils.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/utils.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/version.py
  /usr/lib/python2.6/site-packages/pip/_vendor/packaging/version.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/bar.py
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/bar.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/counter.py
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/counter.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/helpers.py
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/helpers.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/spinner.py
  /usr/lib/python2.6/site-packages/pip/_vendor/progress/spinner.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/pyparsing.py
  /usr/lib/python2.6/site-packages/pip/_vendor/pyparsing.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/re-vendor.py
  /usr/lib/python2.6/site-packages/pip/_vendor/re-vendor.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/__version__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/__version__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/_internal_utils.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/_internal_utils.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/adapters.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/adapters.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/api.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/api.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/auth.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/auth.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/cacert.pem
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/certs.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/certs.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/compat.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/compat.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/cookies.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/cookies.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/exceptions.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/exceptions.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/help.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/help.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/hooks.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/hooks.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/models.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/models.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/sessions.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/sessions.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/status_codes.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/status_codes.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/structures.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/structures.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/utils.py
  /usr/lib/python2.6/site-packages/pip/_vendor/requests/utils.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/retrying.py
  /usr/lib/python2.6/site-packages/pip/_vendor/retrying.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/six.py
  /usr/lib/python2.6/site-packages/pip/_vendor/six.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/_collections.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/_collections.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connection.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connection.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connectionpool.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connectionpool.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/appengine.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/appengine.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/securetransport.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/securetransport.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/socks.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/contrib/socks.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/exceptions.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/exceptions.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/fields.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/fields.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/filepost.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/filepost.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/backports/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/backports/makefile.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/ordered_dict.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/ordered_dict.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/six.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/six.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/_implementation.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/_implementation.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/poolmanager.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/poolmanager.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/request.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/request.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/response.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/response.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/connection.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/connection.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/request.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/request.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/response.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/response.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/retry.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/retry.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/selectors.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/selectors.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/ssl_.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/ssl_.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/timeout.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/timeout.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/url.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/url.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/wait.py
  /usr/lib/python2.6/site-packages/pip/_vendor/urllib3/util/wait.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/__init__.py
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/labels.py
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/labels.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/mklabels.py
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/mklabels.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/tests.py
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/tests.pyc
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/x_user_defined.py
  /usr/lib/python2.6/site-packages/pip/_vendor/webencodings/x_user_defined.pyc
  /usr/lib/python2.6/site-packages/pip/basecommand.py
  /usr/lib/python2.6/site-packages/pip/basecommand.pyc
  /usr/lib/python2.6/site-packages/pip/baseparser.py
  /usr/lib/python2.6/site-packages/pip/baseparser.pyc
  /usr/lib/python2.6/site-packages/pip/cmdoptions.py
  /usr/lib/python2.6/site-packages/pip/cmdoptions.pyc
  /usr/lib/python2.6/site-packages/pip/commands/__init__.py
  /usr/lib/python2.6/site-packages/pip/commands/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/commands/check.py
  /usr/lib/python2.6/site-packages/pip/commands/check.pyc
  /usr/lib/python2.6/site-packages/pip/commands/completion.py
  /usr/lib/python2.6/site-packages/pip/commands/completion.pyc
  /usr/lib/python2.6/site-packages/pip/commands/download.py
  /usr/lib/python2.6/site-packages/pip/commands/download.pyc
  /usr/lib/python2.6/site-packages/pip/commands/freeze.py
  /usr/lib/python2.6/site-packages/pip/commands/freeze.pyc
  /usr/lib/python2.6/site-packages/pip/commands/hash.py
  /usr/lib/python2.6/site-packages/pip/commands/hash.pyc
  /usr/lib/python2.6/site-packages/pip/commands/help.py
  /usr/lib/python2.6/site-packages/pip/commands/help.pyc
  /usr/lib/python2.6/site-packages/pip/commands/install.py
  /usr/lib/python2.6/site-packages/pip/commands/install.pyc
  /usr/lib/python2.6/site-packages/pip/commands/list.py
  /usr/lib/python2.6/site-packages/pip/commands/list.pyc
  /usr/lib/python2.6/site-packages/pip/commands/search.py
  /usr/lib/python2.6/site-packages/pip/commands/search.pyc
  /usr/lib/python2.6/site-packages/pip/commands/show.py
  /usr/lib/python2.6/site-packages/pip/commands/show.pyc
  /usr/lib/python2.6/site-packages/pip/commands/uninstall.py
  /usr/lib/python2.6/site-packages/pip/commands/uninstall.pyc
  /usr/lib/python2.6/site-packages/pip/commands/wheel.py
  /usr/lib/python2.6/site-packages/pip/commands/wheel.pyc
  /usr/lib/python2.6/site-packages/pip/compat/__init__.py
  /usr/lib/python2.6/site-packages/pip/compat/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/compat/dictconfig.py
  /usr/lib/python2.6/site-packages/pip/compat/dictconfig.pyc
  /usr/lib/python2.6/site-packages/pip/download.py
  /usr/lib/python2.6/site-packages/pip/download.pyc
  /usr/lib/python2.6/site-packages/pip/exceptions.py
  /usr/lib/python2.6/site-packages/pip/exceptions.pyc
  /usr/lib/python2.6/site-packages/pip/index.py
  /usr/lib/python2.6/site-packages/pip/index.pyc
  /usr/lib/python2.6/site-packages/pip/locations.py
  /usr/lib/python2.6/site-packages/pip/locations.pyc
  /usr/lib/python2.6/site-packages/pip/models/__init__.py
  /usr/lib/python2.6/site-packages/pip/models/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/models/index.py
  /usr/lib/python2.6/site-packages/pip/models/index.pyc
  /usr/lib/python2.6/site-packages/pip/operations/__init__.py
  /usr/lib/python2.6/site-packages/pip/operations/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/operations/check.py
  /usr/lib/python2.6/site-packages/pip/operations/check.pyc
  /usr/lib/python2.6/site-packages/pip/operations/freeze.py
  /usr/lib/python2.6/site-packages/pip/operations/freeze.pyc
  /usr/lib/python2.6/site-packages/pip/pep425tags.py
  /usr/lib/python2.6/site-packages/pip/pep425tags.pyc
  /usr/lib/python2.6/site-packages/pip/req/__init__.py
  /usr/lib/python2.6/site-packages/pip/req/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/req/req_file.py
  /usr/lib/python2.6/site-packages/pip/req/req_file.pyc
  /usr/lib/python2.6/site-packages/pip/req/req_install.py
  /usr/lib/python2.6/site-packages/pip/req/req_install.pyc
  /usr/lib/python2.6/site-packages/pip/req/req_set.py
  /usr/lib/python2.6/site-packages/pip/req/req_set.pyc
  /usr/lib/python2.6/site-packages/pip/req/req_uninstall.py
  /usr/lib/python2.6/site-packages/pip/req/req_uninstall.pyc
  /usr/lib/python2.6/site-packages/pip/status_codes.py
  /usr/lib/python2.6/site-packages/pip/status_codes.pyc
  /usr/lib/python2.6/site-packages/pip/utils/__init__.py
  /usr/lib/python2.6/site-packages/pip/utils/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/utils/appdirs.py
  /usr/lib/python2.6/site-packages/pip/utils/appdirs.pyc
  /usr/lib/python2.6/site-packages/pip/utils/build.py
  /usr/lib/python2.6/site-packages/pip/utils/build.pyc
  /usr/lib/python2.6/site-packages/pip/utils/deprecation.py
  /usr/lib/python2.6/site-packages/pip/utils/deprecation.pyc
  /usr/lib/python2.6/site-packages/pip/utils/encoding.py
  /usr/lib/python2.6/site-packages/pip/utils/encoding.pyc
  /usr/lib/python2.6/site-packages/pip/utils/filesystem.py
  /usr/lib/python2.6/site-packages/pip/utils/filesystem.pyc
  /usr/lib/python2.6/site-packages/pip/utils/glibc.py
  /usr/lib/python2.6/site-packages/pip/utils/glibc.pyc
  /usr/lib/python2.6/site-packages/pip/utils/hashes.py
  /usr/lib/python2.6/site-packages/pip/utils/hashes.pyc
  /usr/lib/python2.6/site-packages/pip/utils/logging.py
  /usr/lib/python2.6/site-packages/pip/utils/logging.pyc
  /usr/lib/python2.6/site-packages/pip/utils/outdated.py
  /usr/lib/python2.6/site-packages/pip/utils/outdated.pyc
  /usr/lib/python2.6/site-packages/pip/utils/packaging.py
  /usr/lib/python2.6/site-packages/pip/utils/packaging.pyc
  /usr/lib/python2.6/site-packages/pip/utils/setuptools_build.py
  /usr/lib/python2.6/site-packages/pip/utils/setuptools_build.pyc
  /usr/lib/python2.6/site-packages/pip/utils/ui.py
  /usr/lib/python2.6/site-packages/pip/utils/ui.pyc
  /usr/lib/python2.6/site-packages/pip/vcs/__init__.py
  /usr/lib/python2.6/site-packages/pip/vcs/__init__.pyc
  /usr/lib/python2.6/site-packages/pip/vcs/bazaar.py
  /usr/lib/python2.6/site-packages/pip/vcs/bazaar.pyc
  /usr/lib/python2.6/site-packages/pip/vcs/git.py
  /usr/lib/python2.6/site-packages/pip/vcs/git.pyc
  /usr/lib/python2.6/site-packages/pip/vcs/mercurial.py
  /usr/lib/python2.6/site-packages/pip/vcs/mercurial.pyc
  /usr/lib/python2.6/site-packages/pip/vcs/subversion.py
  /usr/lib/python2.6/site-packages/pip/vcs/subversion.pyc
  /usr/lib/python2.6/site-packages/pip/wheel.py
  /usr/lib/python2.6/site-packages/pip/wheel.pyc
Proceed (y/n)? y
  Successfully uninstalled pip-9.0.3
[root@localhost ~]# 

卸载后,查看:

[root@localhost ~]# pip -V
-bash: /usr/bin/pip: No such file or directory
[root@localhost ~]# 
[root@localhost ~]# whereis pip
pip:
[root@localhost ~]# 

PyCharm,运行Python自动安装Pip的程序:

H:\PyCharm_data\Linux_OS_AutoConfig\venv\Scripts\python.exe H:/PyCharm_data/Linux_OS_AutoConfig/Python_PIP_Install_CentOS6_Auto/Python_Pip_Install_CentOS6_Auto.py
Command is:[python -V]
Python Version:【2.6】
Python Version is between [2.3] and [3]
Upload Directory: Create
Command is:[mkdir -p /software/python/pip]
Do: Upload [get-pip.py]
---> File Uploading ,...
 |-> Source:[config_file/get-pip-2.3.py]
 |-> Target:[/software/python/pip/get-pip.py]
Command is:[pip -V]
Python PIP: 未安装
---> 安装:Python PIP
Command is:[python /software/python/pip/get-pip.py]
 |-> 安装:成功

Process finished with exit code 0

Linux,检查安装后的状态:

[root@localhost ~]# whereis pip
pip: /usr/bin/pip /usr/bin/pip2.6
[root@localhost ~]# 
[root@localhost ~]# pip -V
pip 9.0.3 from /usr/lib/python2.6/site-packages (python 2.6)
[root@localhost ~]# 

可以看到,通过Python自动安装PIP,成功。

————————————————————

Python代码,项目资源视图:

脚本代码如下:

# -*- coding: UTF-8 -*-

# =======================================
# Package

# Python Orig

# Adamhuan Define

# 解析方法:配置文件
from TheConfigParser.MeConfigParser import TheConfigParser

# 操纵类:Linux
from TheLinux.MeLinux import TheLinux

# 解析方法:JSON
from TheJSON.MeJSON import TheJSON

# =======================================
# Function

# 配置和安装Python的PIP
def install_pip(ssh_session):

    # do
    python_version = ssh_session.ssh_execute("python -V").strip("\n").split(" ")[1][0:3]

    # test
    #python_version = "2.3"

    # display
    print("Python Version:【"+python_version+"】")

    if float(python_version) >= 2.3 and float(python_version) < 3:

        # display
        print("Python Version is between [2.3] and [3]")

        # do: create directory
        print("Upload Directory: Create")
        ssh_session.ssh_execute("mkdir -p /software/python/pip")

        # do: upload
        print("Do: Upload [get-pip.py]")
        ssh_session.upload_file(
            "config_file/get-pip-2.3.py",
            "/software/python/pip/get-pip.py"
        )

    elif float(python_version) >= 3:

        # display
        print("Python Version is beyond [3]")

        # do: create directory
        print("Upload Directory: Create")
        ssh_session.ssh_execute("mkdir -p /software/python/pip")

        # do: upload
        print("Do: Upload [get-pip.py]")
        ssh_session.upload_file(
            "config_file/get-pip-3.py",
            "/software/python/pip/get-pip.py"
        )

    # variable
    pip_version_result = ssh_session.ssh_execute("pip -V").strip("\n")
    pip_version = pip_version_result.split("f")[0].strip(" ").split(" ")[1]

    # display: pip version
    if "command not found" in pip_version_result:

        # display
        print("Python PIP: 未安装")

        # do: install
        print("---> 安装:Python PIP")
        pip_install_result = ssh_session.ssh_execute("python /software/python/pip/get-pip.py")

        if "You are using pip version" in pip_install_result:
            print(" |-> 安装:成功")

    else:
        print("Python PIP: 已安装")
        print("Python PIP Version:【"+pip_version+"】")

    # default: pass
    pass

# =======================================
# Variable

# =======================================
# Main()

if __name__ == "__main__":

    # do
    # 定义配置文件
    config_file_session = TheConfigParser("connect_info.conf")
    # 从配置文件获得JSON格式的数据
    json_data_config_file = config_file_session.return_Config_Data_with_JSON_style()
    # 对JSON数据做解析
    json_session = TheJSON(json_data_config_file)

    # do
    target_record = json_session.get_JSON_by_TypeName_RecordSearchString(type_name="json",
                                                                         Record_SearchString="section_1=192.168.230.129")

    # SSH Info
    os_ip = target_record.get("section_1")
    os_port = target_record.get("section_2")
    os_username = target_record.get("username")
    os_password = target_record.get("password")

    # SSH Session
    SSH_Session = TheLinux(ssh_ip=os_ip, ssh_port=os_port, str_username=os_username, str_password=os_password)

    # 0000000000000000000000000000000000000000000000000000000
    # Main(): call linux
    # 0000000000000000000000000000000000000000000000000000000

    # do: Python PIP
    install_pip(SSH_Session)

# =======================================
# Finished

————————————
Done。

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒