Installing python-devel/mysql-devel

Will12514

Registered
Jun 29, 2018
3
0
1
Ireland
cPanel Access Level
Website Owner
I'm trying to install mysqlclient for python 3.6 on a cpanel server using:
pip3 install mysqlclient

However I get an error:
_mysql.c:29:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1

----------------------------------------
Failed building wheel for mysql-python

How can I go about installing python-devel/mysql-devel to resolve this?

thanks
 

Will12514

Registered
Jun 29, 2018
3
0
1
Ireland
cPanel Access Level
Website Owner
I got areound this by installung PyMysql.

Although now I have a problem getting the python web app to run .

I'm getting:
WSGI script is not in webapp directory

even though it is in the webapp directory?
 

Will12514

Registered
Jun 29, 2018
3
0
1
Ireland
cPanel Access Level
Website Owner
Scratch that I now have the application running. However it is not serving up the Python Flask web application, instead it just a blank page is visible
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston