首页 > 编程语言 > 详细

Centos非管理员安装Python和pip

时间:2015-11-28 09:06:15      阅读:411      评论:0      收藏:0      [点我收藏+]

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

 

Centos非管理员安装Python和pip

原文:http://www.cnblogs.com/reanote/p/5002127.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!