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 trialKathy Lanier
4,426 PointsCan you call scripts from the terminal? I have an Apple machine and using version 2.7.10
I like the idea of learning within the environment that I will actually use Python. So, how would I call a script from the terminal Python shell?
1 Answer
Brian Boring
Courses Plus Student 3,904 PointsJust type in "python" without the quotes and it will put you into a python shell. Once you see >>> you know you are good to start programming in python. That being said, I felt the same way and wanted to use a real world IDE, so I started using PyCharm and doing all the work of this course there. I highly recommend it.
Brian Boring
Courses Plus Student 3,904 PointsBrian Boring
Courses Plus Student 3,904 PointsIf you are trying to call a previously written script in the shell, just make sure you are in the folder that the script exists in, and then type "python script_name.py" without the quotes. Make sure you have a space between python and the script file name.