CentOS python2.7 自动安装脚本
来源:互联网 发布:手机淘宝店铺id怎么看 编辑:程序博客网 时间:2024/06/06 04:49
由于多次需要配置CentOS python,干脆写成一个脚本。
使用版本:CentOS release 6.3 (Final),其他没测试过。
一句话安装(需要能sudo或root):
wget https://gist.github.com/zagfai/9087397/raw/95e92b70f6f5bde784da8bc4e9d3e113cc1b0b88/centpy.sh && sudo sh centpy.sh && rm centpy.sh
详细代码如下,
#!/bin/bash# system packages =============================================================yum -y install python-devel openssl openssl-devel gcc sqlite sqlite-devel mysql-devel libxml2-devel libxslt-devel# Python ======================================================================wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgztar -xzf Python-2.7.6.tgzcd Python-2.7.6./configure --prefix=/usr/local/python2.7 --with-threads --enable-sharedmake && make altinstallln -s /usr/local/python2.7/lib/libpython2.7.so /usr/libln -s /usr/local/python2.7/lib/libpython2.7.so.1.0 /usr/libln -s /usr/local/python2.7/bin/python2.7 /usr/binln -s /usr/bin/python2.7 /usr/bin/python27/sbin/ldconfig -v# easyinstall and pip =========================================================wget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz --no-check-certificatetar xf distribute-0.6.49.tar.gzcd distribute-0.6.49python2.7 setup.py install/usr/local/python2.7/bin/easy_install pipln -s /usr/local/python2.7/bin/pip /usr/bin# preinstall packages =========================================================pip install mysql-python ipython requests readline beautifulsoup4 html5lib jinja2ln -s /usr/local/python2.7/bin/ipython /usr/binwget https://github.com/zagfai/webtul/archive/v0.31.zipunzip v0.31cd webtul-0.31 && sudo python2.7 setup.py install# Doneecho rm dirs.............rm Python-2.7.6 Python-2.7.6.tgz -recho FinishInstall!!!!!!!!!!python2.7 -V
0 0
- CentOS python2.7 自动安装脚本
- centos安装python2.7
- centos 安装python2.7
- centos 安装python2.7
- centos安装python2.7
- centos安装python2.7
- CentOS安装Python2.7
- centos 安装python2.7
- Centos6.5+Python2.7 +ffmpeg+opencv2自动安装脚本
- centos上安装python2.7
- centos下安装python2.7
- centos安装Python2.7记录
- 安装 Python2.7到 centos
- Centos 7 安装python2.7.11
- centos中安装Python2.7
- centos python2.7安装numpy
- python2.7简明之自动备份脚本
- Centos下安装python2.7 安装工具
- CPU加电无反应及频繁死机故障处理
- codeforces #230 (Div. 2) B(简单数学)
- 各种js验证整理,很全面
- Android高手进阶教程(四)之----Android 中自定义属性(attr.xml,TypedArray)的使用!
- PriorityQueue
- CentOS python2.7 自动安装脚本
- photoshop中关于配置的15条技巧
- 处理几种Coreldraw文件损坏的方法
- PowerDesigner一些小技巧
- <aop:aspectj-autoproxy />作用
- thinkphp 编辑器 Ueditor
- The type javax.servlet.http.HttpServletRequest cannot be resolved.
- LA 3135
- Java中的垃圾回收与对象生命周期