Jump to content

[Solved] Using CGI for python script


ckuo

Recommended Posts

Hi there,

 

following the post https://www.helionet.org/index/topic/29540-solved-total-beginner-need-help-running-a-python-script/

I realized I have no modules python3.7 for my script. What's the process to add the required modules ?

I'll be needing the following: 

 
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
import csv
import os
import mysql.connector
import sys
import re

 

Thanks!

Link to comment
Share on other sites

Krydos can install them for you. Some of them are already installed, some come packed with Python 3 like os, sys etc. but a few like mysql.connector requires installation.

 

You can check the list of installed modules on Python 3.7 on Tommy here: .heliohost.org/cgi-bin/modules37.py

I didn't note that you're not on Tommy. As flazepe said, refer the link he's given below.

Link to comment
Share on other sites

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