I'm using Python 2.7 in a virtual environment, but do not let me run the python console in the normal way, but:
- instead of using
python manage.py runserver
- I must use
py manage.py runserver
Does anyone know what it is?
I'm using Python 2.7 in a virtual environment, but do not let me run the python console in the normal way, but:
python manage.py runserver
py manage.py runserver
Does anyone know what it is?
From what I understand, you are using Windows, here it is mentioned that py is a launcher employed in Windows; you can place py -h
to get the list of arguments.
If you want to create an alias of py, I understand that with the doskey python=py
instruction you would have done it, of course that only creates the alias in the current console session (when you rerun the MS-DOS console you should rerun the command doskey). An alternative that you could try is to look for the py.exe file and rename it to python.exe, although I do not know if this would cause problems for other software that is based on the existence of a py.exe.