Whenever I try to run a .py file from cmd, it opens in a text editor (np ++). I am trying to run the following:
django-admin.py startproject testprj
Even if I ran setup.py install
You need to change the file association to open .py files with the Python executable usually located in C:\Python<version>\, not Notepad ++
C:\Python<version>\
Changing this should be simple, but here is how to do it.
Also, read here to set the environment path to find the Python executable without having to go to C: \ Python2. 6.
Windows .py . python.exe, python, :
.py
python.exe
python django-admin.py startproject testprj
, Vista Windows 7, " " → " " → " "
: `python ( python.exe python.exe ) filename ( .) .
, setup.py : :
cd, , .py
"pathtopythonwithoutnameonend\python.exe" (In "!) setup.py
python "pathtofolderinwhichsetup.pyiswithoutname\setup.py" (In "!)
. .
Source: https://habr.com/ru/post/1777727/More articles:TFS2010 Query - Find Tasks for Orphans? - tfs2010How to do inline editing with JqGrid subgrids? - javascriptdrop-down menu with XML file - c #Download Azure Blob (a) Async: BeginUploadFromStream vs BackgroundWorker - asynchronousHow to access individual words after line splitting? - c ++What is incorrectly configured when the Drupal homepage is working fine, but all links are broken? - drupalAdding CheckBox to DefaultTableModel - javaProtecting sections of source code - javaDrupal - clean database - drupalWindows Phone 7 - Cookies not sent to WCF - windows-phone-7All Articles