- gcc环境 腾讯云默认是没有gcc编译器的,需要手动安装一下:yum install gcc
- 可能会用到的工具集提前安装 yum install libbz2 yum install readline-devel yum install sqlite-devel yum install zlib-devel yum install openssl-devel
- python安装 wget -P /yourdirectory http://python.org/ftp/python/3.3.3/Python-3.3.3.tgz tar -xvf Python-3.3.3.tgz ./configure --prefix=/var/python3 make && make install
- 替换系统路径默认python连接 ##删除原有连接 rm /usr/bin/python ##建立新链接 ln -s /var/python3/bin/python3.3 /usr/bin/python vim /usr/bin/yum 通过vim修改yum的配置#!/usr/bin/python改为#!/usr/bin/python2,保存退出。完成了python3的安装。
- 安装pip(可用代理地址下载pip,easyinstall ) wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py python ez_setup.py wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py python get-pip.py 6.安装django pip install django
转载于:https://my.oschina.net/u/435726/blog/1785599