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

feita há 2 anos254 visualizações
1 Resposta
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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas