I am using colorama module for python3 along with pywikibot. Using the following command to install pip install colorama After few hours of shutdown, when i return, it says that the colorama is not installed as throws in the terminal "ModuleNotFoundError". How to fix this issue?
Sample code ;-
#bringing the needed library modules import csv, time, subprocess, pywikibot, re #bringing the color library modules pip install colorama from colorama import init, Back, Style #init(autoreset=True) #reading time-start WAIT_TIME = 5 #reading the CSVfile as input file with open('0-123-wikt.csv', 'r') as csvfile: reader = csv.reader(csvfile,delimiter="~") for row in reader: #removing the first line of the csv # subprocess.call("sed -i `` 1d 0-123-wikt.csv",shell=True) #removing white spaces in the wiktHeader wiktHeader1 = row.strip()#.decode('utf-8') print ('\n' + 'step-1: ta.wiktHeader = ' + Back.BLUE + wiktHeader1 + Style.RESET_ALL )