首页 > 代码库 > salt 安装MySQL-python和过程

salt 安装MySQL-python和过程

1.下载 MySQL-python-1.2.3.tar.gz 

tar zxvf MySQL-python-1.2.3.tar.gz 

cd MySQL-python-1.2.3

python26 setup.py  install

提示错误:

Traceback (most recent call last):

  File "setup.py", line 5, in <module>

    from setuptools import setup, Extension

ImportError: No module named setuptools

解决方法:

 wget --no-check-certificate http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz 

tar zxvf setuptools-0.6c11.tar.gz 

cd setuptools-0.6c11

python26 setup.py  install

cd ..

cd MySQL-python-1.2.3

python26 setup.py  install

提示错误:

error: command ‘gcc‘ failed with exit status 1

yum install python26-devel.x86_64 -y

就行了

2.下载APScheduler-2.1.2.tar.gz 

tar zxvf APScheduler-2.1.2.tar.gz 

cd APScheduler-2.1.2

python26 setup.py  install



salt 安装MySQL-python和过程