centos 下面安装python2.7 +pip +mysqld

亲人是父母给你找的朋友,朋友是你给自己找的亲人,所以同等重要,孰轻孰重没那么多分别。

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

以上就是centos 下面安装python2.7 +pip +mysqld。世事往往如此,想回头也已经来不及,即使你肯沦为劣马,也不一定有回头草在等你。更多关于centos 下面安装python2.7 +pip +mysqld请关注haodaima.com其它相关文章!

标签: centos mysqld