安装pip:
sudo yum -y install epel-release
sudo yum -y install python-pip
配置国内源:
cd ~ && mkdir -p .pip
cat ~/.pip/pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
cat ~/.pydistutils.cfg
[easy_install]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
find-links=
https://pypi.tuna.tsinghua.edu.cn/simple
执行命令: pip search mysql时,报如下问题:
pip search mysql
You are using pip version 7.1.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/usr/lib/python2.6/site-packages/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: