码迷,mamicode.com
首页 > 数据库 > 详细

salt 安装MySQL-python和过程

时间:2014-09-23 17:40:05      阅读:249      评论:0      收藏:0      [点我收藏+]

标签:salt

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和过程

标签:salt

原文地址:http://wwdhks.blog.51cto.com/839773/1557358

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!