OS:CentOS 6.9
国内pypi源:阿里云 中国科技大学
豆瓣(douban)
清华大学
中国科学技术大学
1、安装setuptool
wget --no-check-certificate
或
wget --no-check-certificate
或
wget
tar -zxvf
ez_setup-0.9.tar.gz
cd
ez_setup-0.9
python ez_setup.py --insecure
ln -s /usr/local/python/bin/easy_install /usr/bin/easy_install
easy_install 使用:
easy_install uwsgi #uwsgi是一个web服务器,实现了WSGI(Web Server Gateway Interface)协议、uwsgi、http等协议。
easy_install flask #安装
easy_install upgrade flask #升级
easy_install -m flask #卸载
easy_install /downloads/flask-0.9.1-py2.7.egg #用本地已有的egg文件安装组件。
2、安装pip
wget --no-check-certificate
tar -zxvf pip-9.0.1.tar.gz
cd pip-9.0.1
python setup.py install
pip使用:
pip install Django -i
pip --default-timeout=120 install Django #设置超时时间
pip install tornado 或 pip install tornado= 1.0.8 #指定安装版本
pip install -U tornado=1.0.9 #升级到指定版本
pip search framework #查看所有与”framework”关键字相关的组件
pip uninstall tornado #卸载
pip报错:提示urllib3连接失败
-
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/
-
InsecurePlatformWarning
安装:
yum install python-devel libffi-devel openssl-devel
阅读(1188) | 评论(0) | 转发(0) |