Install python setuptools in CentOS

I have to install the mysqldb module of python on my centos server. I have 2 versions of python

> 2.4.3 default value
> 2.6 I install

I want to install the mysqldb module for the 2.6 version of python.
I installed it from here, but when I am online

 python2.6 setup.py install

It says

Traceback (most recent call last):
File "setup.py", line 5, in
from setuptools import setup, Extension
ImportError: No module named setuptools

So I use the command to install the installation tools from here

< /p>

setuptools-0.6c11-py2.6.egg

Because I installed 2.6 python, I installed this rpm. But when I execute this command, it says

Traceback (most recent call last):
File "", line 1, in
zipimport.ZipImportError: can't decompress data; zlib not available

But when I found the command, I did find the package and rpm installed for zlib.

/usr/share/doc/ zlib-1.2.3
/usr/share/doc/zlib-1.2.3/README
/var/cache/yum/base/packages/zlib-devel-1.2.3-4.el 5. x86_64.rpm

Anyone can help me. I do want to install the mysqldb module for the python 2.6 I installed

/usr/local/bin/ 

Contents.

Any help or ideas will be highly appreciated.

when you When installing Python 2.6, you most likely did not install zlib-devel, so your Python does not have this feature built in. I suggest you install

readline-devel
sqlite-devel
zlib-devel
openssl-devel

Before compiling your own Python. After installing the newly compiled Python, obtain the setuptools source package and install it:

python2.6 setup.py install

I have to install python’s mysqldb module on my centos server. I have 2

> 2.4.3 default value
> 2.6 I install

I want to install the mysqldb module for the 2.6 version of python.
I start from Install it here, but when I am online

python2.6 setup.py install

It says

< pre>Traceback (most recent call last):
File “setup.py”, line 5, in
from setuptools import setup, Extension
ImportError: No module named setuptools

So I used the command to install the installation tool from here

setuptools-0.6c11-py2.6.egg

Because I installed 2.6 python so I installed this rpm. But when I execute this command, it says

Traceback (most recent call last):
File "" , line 1, in
zipimport.ZipImportError: c an't decompress data; zlib not available

But when I found the command, I did find the package and rpm installed for zlib.

/ usr/share/doc/zlib-1.2.3
/usr/share/doc/zlib-1.2.3/README
/var/cache/yum/base/packages/zlib-devel-1.2. 3-4.el5.x86_64.rpm

Anyone can help me. I do want to install the mysqldb module for my python 2.6 installation

/ usr/local/bin/

Contents.

Any help or ideas will be highly appreciated.

When When you install Python 2.6, you most likely did not install zlib-devel, so your Python does not have this feature built in. I suggest you install

readline-devel
sqlite-devel
zlib-devel
openssl-devel

Before compiling your own Python. After installing the newly compiled Python, get the setuptools source package and install it:

python2.6 setup.py install

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4904 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.