Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Installing python-devel/mysql-devel

Discussion in 'CloudLinux' started by Will12514, Jun 29, 2018.

  1. Will12514

    Will12514 Registered

    Joined:
    Jun 29, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. Will12514

    Will12514 Registered

    Joined:
    Jun 29, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  3. Will12514

    Will12514 Registered

    Joined:
    Jun 29, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,748
    Likes Received:
    187
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice