I get a message saying Python was not found.
This is a part of my code
parser = OptionParser()
parser.add_option('-u', action="store")
parser.add_option('-d', action="store")
parser.add_option('-t', action="store")
options, args = parser.parse_args()
readerID = str(options.u)
docID = str(options.d)
task_selection = str(options.t)
if task_selection == '2a':
print("Countries of Visitors:")
for k,v in (Counter(program.ViewByCountry(docID,task_selection))).items():
print(k,"-->",v)
elif task_selection == '2b':
print("Continents of Visitors:")
for k,v in (Counter(program.ViewByCountry(docID,task_selection))).items():
print (k,"-->",v)
This is my task.
Provide a command-line interface to test your program like this :
% cw2 -u user_uuid -d doc_uuid -t task_id -f file_name
When I put this in my command line :
python3 cw2.py -d 140218233015-c848da298ed6d38b98e18a85731a83f4 -t 3a
I get a message saying Python was not found. I have created this in Pycharm. Why does this happen?