Skip to main content

Error when trying to pip install mysqlclient

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! cPanel doesn't officially provide support for Python tools as outlined in our notice at the tope of this documentation page:
    0
  • Fabius
    Thanks. In the end I changed from using mysqlclient to mysql-connector-python which installed OK. A shame the former didn't work. If I wanted to try again, how would I install the mysql-community-devel or mysql-devel packages on cPanel?
    0
  • Spirogg
    Thanks. In the end I changed from using mysqlclient to mysql-connector-python which installed OK. A shame the former didn't work. If I wanted to try again, how would I install the mysql-community-devel or mysql-devel packages on cPanel?

    Depends on OS but yum should work for AlmaLinux as well or you can use dnf install [pkg-name] yum install [pkg-name] yum install mysql-devel
    yum install mysql-community-devel
    or dnf install mysql-devel
    dnf install mysql-community-devel
    [root@server1 ~]# yum install mysql-community-devel Last metadata expiration check: 1:53:02 ago on Wed 11 May 2022 11:43:10 PM CDT. Package mysql-community-devel-8.0.29-1.el8.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! [root@server1 ~]# ]yum install mysql-devel bash: ]yum: command not found [root@server1 ~]# yum install mysql-devel Last metadata expiration check: 1:54:11 ago on Wed 11 May 2022 11:43:10 PM CDT. Package mysql-community-devel-8.0.29-1.el8.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! [root@server1 ~]
    0
  • Fabius
    Thank you! I'm a bit wary of installing extra stuff like this, given I'm setting this site up on someone else's server for them. But it's useful to know what to do if mysql-connector-python doesn't work out (or for anyone else finding this page and wondering what to do!).
    0
  • cPRex Jurassic Moderator
    I'm glad to hear that worked well!
    0

Please sign in to leave a comment.