Jump to content

Recommended Posts

Posted (edited)

Hi Admin, can you please let me know how to install python libraries in my server?

 

Your cPanel username: joaopm33

Your main domain: http://joaopm33.heliohost.us

The server that you are on: johnny

Python version: 3.7

Module(s) that you need installed:

  • instaloader
  • mysql

 

I am trying to connect to my helionet mysql db to read and write tables.

 

I firstly import the sqlalchemy create engine function:

from sqlalchemy import create_engine

Then, when i create my connection with the db with:

engine = (create_engine('mysql+mysqlconnector://<user>:<password>@<host>/<database>').connect())

I get an Error:

No module named 'mysql'

The exact same code works fine accessing the db from my local environment, so i guess its a library prooblem.

Can you help me? Thanks in advance!

Edited by joaopm33
Guest
This topic is now closed to further replies.
×
×
  • Create New...