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

已提问 2 年前254 查看次数
1 回答
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则