centos 6.8 安装python2.7.x环境
来源:互联网 发布:苏州淘宝网店培训 编辑:程序博客网 时间:2024/05/17 02:28
简单记录下,centos6.x 上安装 python2.7.x 过程:
1、系统版本:CentOS-6.8-x86_64-minimal.iso
2、安装:
1>安装前准备:
保证系统能上网然后用yum命令安装以下软件:make、zlib-devel、bzip2-devel、openssl-devel、ncurses-devel、sqlite-devel、gcc
命令安装举例:
安装make: yum install make
python官网下载python2.7.x的源码包,然后解压 tar -zvxf Python-2.7.11.tgz
2>安装python
进入解压包 cd python-2.7.11,我要把python安装到目录 /usr/local 下,所以
./configure --prefix=/usr/local
make&&make altinstall
3>安装完成后,设置python的环境:
进入/etc/profile.d/ 目录,创建 python.sh 文件并添加如下内容:
创建文件命令 vim python.sh (如果没有vim命令,可以用vi)
export PATH=”/usr/local/bin:$PATH”
添加完成之后保存文件,重启系统 init 6
4>安装setuptoool
wget --no-check-certificatehttps://bootstrap.pypa.io/ez_setup.py(如果没有wget命令,可以用yum install wget 安装)
python ez_setup.py –insecure
5>安装pip
wget--no-check-certificatehttps://github.com/pypa/pip/archive/1.5.5.tar.gz
tar -zxvf 1.5.5.tar.gz
python setup.py install
pip自升级:pip install -U pip
到这里安装就差不多了。如果想安装插件的话,直接用pip install 就可以了。
- centos 6.8 安装python2.7.x环境
- centos 6.8 安装python2.7.x环境
- centos 下安装python2.7.x
- centos 安装 python2.7及开发环境
- CentOS 6.8安装Python2.7.13
- CentOS 6.x 升级Python2.6.x到Python2.7.x
- CentOS安装python2.6
- centos安装python2.7
- centos 安装python2.7
- centos 安装python2.7
- Centos python2.7.8 安装
- centos安装python2.7.11
- centos安装python2.7
- centos安装python2.7
- CentOS安装Python2.7
- centos 安装python2.7
- win764 + python2.7.x + opencv 安装
- python2.7.x windows下安装pip
- 在Linux CentOS 6.6上安装Python 2.7.9
- 为什么说面向对象编程和函数式编程都有问题
- Spring AOP总结
- 学习笔记-spring-mybatis-jsoup-http-client小说站点爬虫(1)--获取小说站点章节列表
- hdu1337(模拟/完全平方数)
- centos 6.8 安装python2.7.x环境
- Java NIO和IO的区别
- 原生JS获取HTML样式并修改
- [mmc subsystem] mmc core(第五章)——card相关模块(mmc type card)
- ubuntu vsftp root login
- 网站的搭建和对数据库存的查询显示和数据添加
- Theano 中文文档 0.9 - 7.2.1 起手式 —— 代数
- HSSFCell 设立样式
- 存储过程详解