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!

How install MySQLdb (python)

Discussion in 'Database Discussion' started by Timppa, Feb 25, 2016.

  1. Timppa

    Timppa Registered

    Joined:
    Feb 8, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    I have a fresh install cPanel server and when I try to import MySQLdb in python:

    >>> import MySQLdb
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: No module named MySQLdb

    I get an error message: ImportError: No module named MySQLdb

    Then I try:
    # yum install MySQL-python

    But did not succeed. How can i install MySQLdb Python module?

    Best Regards, Timppa
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,954
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    That package is unsupported, but you can search for and use a custom repository to install it via YUM, or install the package from source:

    MySQL for Python

    Thank you.
     
    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