Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Sohail Mirza
Sohail Mirza
Python Web Development Techdegree Student 5,158 Points

workspace is not working

Sorry i just started the course. From day one my workspace is not working. It opens up find. when i run something it doesn't work. for example in the console i run hello.py i get the following message - bash: hello.py: command not found Any assistance will be helpful

1 Answer

Jason Anders
Jason Anders
Treehouse Moderator 145,624 Points

Hi Sohail,

Welcome to Treehouse.

I believe your Workspace is running fine, you're just missing one thing from the command to run the program. You're getting the error, because the console itself does not know what you mean by just the file name... the console is expecting a command. Here it would simply be python. This keyword tell the console to run python and then open the stated file.
So the complete line in the console needed would be:

python hello.py

Keep Coding! :) :dizzy: