Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

console not working when I run my file

I try to run the file 'please_run.py' but I get an error-

python: can't open file 'please_run.py': [Errno 2] No such file or directory

I made sure I saved the file and is in the same folder. I tried to create a new file and run it and that works just fine. I also made sure there isn't any typo when I executed the command.

Can you post a snapshot of your workspace? It is the camera icon in the upper right corner.

1 Answer

Mia Allen
Mia Allen
2,929 Points

Did you check your indentation?