New file won't run, have tried saving as .py or .txt first, trouble with that as well.

0

First time user, scavenged the web on this previously. Starting my environment it keeps showing this error message when I hit run top or in the terminal.

/usr/bin/python3: can't find 'main' module in ''

Ive been following this guide https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-python.html I can't figure out how to even complete step 1 because this save issue

gefragt vor 2 Jahren254 Aufrufe
1 Antwort
0

Hey! It's unfortunate you're facing this issue.

I have just created a new Cloud9 EC2 environment and was able to successfully complete steps 1, 2 and 3 of https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-python.html.

I've tried this with both Amazon Linux 2 and Ubuntu Server 18.04.

You mention you are not able to complete step 1 (Install Python). What do you see if you run python3 --version? Do you see that error as well?

And is there any difference after you run steps 1.2 and 1.3 of the guide?

  • 1.2
    • Amazon Linux: sudo yum -y update
    • Ubuntu Server: sudo apt update
  • 1.3
    • Amazon Linux: sudo yum -y install python3
    • Ubuntu Server: sudo apt-get install python3
AWS
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen