Centos非管理员安装Python和pip,以下采用非管理员reanote的帐号安装:
[reanote@cloud ~]$ mkdir download[reanote@cloud ~]$ cd download/[reanote@cloud download]$ wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz[reanote@cloud download]$ tar -xzf Python-2.7.10.tgz[reanote@cloud download]$ cd Python-2.7.10[reanote@cloud Python-2.7.10]$ mkdir ~/local[reanote@cloud Python-2.7.10]$ ./configure --prefix=/home/reanote/local/[reanote@cloud Python-2.7.10]$ make[reanote@cloud Python-2.7.10]$ make install[reanote@cloud Python-2.7.10]$ cd ..[reanote@cloud download]$ wget https://bootstrap.pypa.io/get-pip.py[reanote@cloud download]$ ~/local/bin/python get-pip.py[reanote@cloud download]$ ~/local/bin/pip install django
Python的下载地址大全:
https://www.python.org/downloads/source/
Python2.7.10 的下载地址:
https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
get-pip.py的下载地址:
https://bootstrap.pypa.io/get-pip.py