Search the Community
Showing results for tags '#python'.
-
[Solved] How to install python packages in johnny server
joaopm33 posted a topic in Customer Service
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: 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! -
I Want To Install Flask Modules in Johnny. How Can I Do That ? Required Modules Are As Following : from flask import Flask,render_template,redirect,url_for,session,request,jsonify,flash,jsonfrom flask_mail import Mail,Messagefrom werkzeug.utils import secure_filenameimport mysql.connector,randomfrom requests import getfrom datetime import datetimefrom datetime import timedeltafrom datetime import dateimport urllib.request, jsonfrom passlib.hash import sha256_cryptimport os,base64,ioimport uuidimport fpdffrom fpdf import FPDFimport smtplibfrom email.mime.multipart import MIMEMultipartfrom email.mime.text import MIMEText from email.headerregistry import Addressfrom email.message import EmailMessageimport osimport smtplibfrom email.header import Headerfrom email.mime.text import MIMETextfrom getpass import getpassfrom smtplib import SMTP_SSL Thanks In Advance.