How to install MySQLdb for Python3 in Kali Linux

MySQLdb Installation
Building and installing
The 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 build
6. $ sudo python install  $ # or su first


About Lasha Gogua

    Blogger Comment
    Facebook Comment


Post a Comment