Whenever I try to run a .py file from cmd it opens up in a text editor(np++). I’m trying to run the following:
django-admin.py startproject testprj
Even if I run ‘setup.py install’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to change the file association so that .py files open with Python executable, typically located in
C:\Python<version>\and not Notepad++Changing this should be easy, but here is how to do it.
Also, read here on to set the environment path so that the Python executable is found without you having to navigate to C:\Python2.6.