知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

CentOS6安装Python2.7

发布时间:2014-09-05 13:31:28作者:知识屋

sudo yum -y install python-devel openssl openssl-devel gcc sqlite-develwget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgztar -xvjf Python-2.7.6.tar.bz2cd Python-2.7.6./configure --prefix=/usr/local/python2.7 --with-threads --enable-sharedsudo makesudo make install altinstallsudo ln -s /usr/local/python2.7/lib/libpython2.7.so /usr/libsudo ln -s /usr/local/python2.7/lib/libpython2.7.so.1.0 /usr/libsudo ln -s /usr/local/python2.7/bin/python2.7 /usr/local/binsudo /sbin/ldconfig -v# OKpython2.7 -V 

装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 installsudo /usr/local/python2.7/bin/easy_install pip#OK/usr/local/python2.7/bin/pip install xxx
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜