Installing python-devel/mysql-devel
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
-
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? 0 -
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 0 -
Hello @Will12514 There are quite a few tutorials on how to do this successfully a google search result of this can be found here python flask with cPanel - Google Search If these aren't helpful you might want to check with a system administrator to ensure the configuration is correct, if you don't have one already you might find one here: System Administration Services | cPanel Forums Thanks! 0
Please sign in to leave a comment.
Comments
3 comments