How to install MySQLdb for Python3 in Kali Linux

MySQLdb Installation
====================
Building and installing
-----------------------
The setup.py script uses mysql_config to find all compiler and linker options, and should work as is on any POSIX-like platform, so long as mysql_config is in your path.

1. $ sudo apt-get install python3-dev

MySQL Download sourcefroge or Download github 

Finally, putting it together:

2. $ tar xfz MySQL-python-1.2.4b4.tar.gz
3. $ cd MySQL-python-1.2.4b4
4. $ # edit site.cfg if necessary
5. $ python setup.py build
6. $ sudo python setup.py install  $ # or su first





SHARE

About Lasha Gogua

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment