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 Using Databases in Python Our Diary App Switching It Up

Shebang doesn't work on Windows 10, pls help!

I can't do this part of the tutorial as a Windows developer, because it just takes no affect. I do shebang, I don't change x, because I already have execute permission; since this is a chmod (Linux) command.

Then I feel like my best Kenneth Love and type diary.py; Guess what happens? Windows f-king opens it with default thing that opens it (PyCharm Pro)! & with that all these positive emotions associated with visualizing being Kenneth Love, gone, unf.

Can we make it work or should I just keep typing python <filename> <args> over and over and over and over again?

Brendan Whiting hey! Thanks for update anyways ))

1 Answer

Ayman Said
seal-mask
.a{fill-rule:evenodd;}techdegree
Ayman Said
Python Web Development Techdegree Student 14,717 Points

Just came across, Juris Jaundzeikars, for windows we don't the shebang thing. Pycharm opens because it's the default program that handles .py files on your windows. What you can do, is simply detach Pycharm for being the default program for .py files, assuming you've the Python path in your windows environment is set, then all be running smoothly.

Hope this would help you out.

Cheers,