Need to install mysql-devel in the server that has cPanel

imehrzadm

Registered
Nov 15, 2017
1
0
1
Germany
cPanel Access Level
Root Administrator
Hi my friends

I have Python script in my cPanel server and need to connect my script to MYSQL, for connecting Python to MYSQL i need to have libmysqlclient

Code:
File "/usr/lib64/python3.6/site-packages/MySQLdb/init.py", line 19, in <module>
    import _mysql
ImportError: /usr/lib64/libmysqlclient.so.18: version `libmysqlclient_16' not found (required by /usr/lib64/python3.6/site-packages/_mysql.cpython-36m-x86_64-linux-gnu.so)
Please help me to fix problem.

I ask this question in cPanel forum because this error only occur on cPanel server and other servers without cPanel doesn't have this problem.

thanks alot
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

Could you let us know the specific command you are using, and the version of MySQL/MariaDB currently installed on your system? Note if you are using CloudLinux, review the following URL:

Installing MySQL-Python on cPanel server

Thank you.