centos 下面安装python2.7 +pip +mysqld_python教程-查字典教程网
centos 下面安装python2.7 +pip +mysqld
centos 下面安装python2.7 +pip +mysqld
发布时间:2016-12-28 来源:查字典编辑
摘要:python2.7复制代码代码如下:wgethttp://www.python.org/ftp/python/2.7.6/Python-2....

python2.7

复制代码 代码如下:

wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz

yum install xz-libs

xz -d Python-2.7.6.tar.xz

ls

tar -xvf Python-2.7.6.tar

cd Python-2.7.6

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline

LDFLAGS="-Wl,-rpath /usr/local/lib"

vim /etc/ld.so.conf

./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"

make clean

make && make altinstall

pip

复制代码 代码如下:

wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz

tar -vxf setuptools-1.4.2.tar.gz

cd setuptools-1.4.2

python2.7 setup.py install

easy_install-2.7 pip

mysqldb

复制代码 代码如下:

yum -y install MySQL-python

yum -y install mysql-devel

easy_install-2.7 MySQL-python

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新python学习
    热门python学习
    脚本专栏子分类