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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠