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 trialSohail Mirza
Python Web Development Techdegree Student 5,158 Pointsworkspace 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
Treehouse Moderator 145,860 PointsHi 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! :)