joaopm33 Posted December 15, 2020 Posted December 15, 2020 (edited) Hi Admin, can you please let me know how to install python libraries in my server? Your cPanel username: joaopm33Your main domain: http://joaopm33.heliohost.usThe server that you are on: johnnyPython version: 3.7Module(s) that you need installed:instaloadermysql 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_engineThen, 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 December 15, 2020 by joaopm33
Krydos Posted December 15, 2020 Posted December 15, 2020 Try using mysqlclient instead. https://krydos2.heliohost.org/cgi-bin/modules37.py
joaopm33 Posted December 15, 2020 Author Posted December 15, 2020 (edited) Tks a lot , i guess it solved it! Edited December 15, 2020 by joaopm33
Recommended Posts