Chinaunix首页 | 论坛 | 博客
  • 博客访问: 385583
  • 博文数量: 112
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 800
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-29 13:41
文章分类

全部博文(112)

文章存档

2020年(1)

2018年(10)

2017年(27)

2016年(18)

2015年(31)

2014年(25)

分类: LINUX

2017-01-10 18:31:24

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连接失败

点击(此处)折叠或打开

  1. 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/
  2.   InsecurePlatformWarning


安装:
     yum install python-devel libffi-devel openssl-devel

    
阅读(1120) | 评论(0) | 转发(0) |
0

上一篇:iptables使用

下一篇:Linux下搭建Django站点一

给主人留下些什么吧!~~