I installed djangousing the command pip( pip install Django), but I can not start it using the command py, because it can not find the module. I can only make it work with the python command.
django
pip
pip install Django
py
Here is a brief overview of the screenshot I clicked
$ python --version Python 3.6.1 $ py --version Python 3.6.0
It also looks like django only works with 3.6.1.
Is there a way to install both commands to run the latest python version?
Screenshot:
py - , C:\Windows. , , , Linux, Windows , python py, , , . , , (python.bak ..) , Windows, , , , . , , . , , , , , , , - pip:
py -m pip install packagename python -m pip install packagename
python Windows, . Django Windows.
Python launcher Windows py. , Python py :
> py -3.6
PEP 397: Python
, PY_PYTHON - "2". , (, "2" ) major.minor (, "2.6" ) major.minor-32., PY_PYTHON{major} ( {major} - ), . , Python , , , , , ..INI, . INI [ ], , PY_ prefix ( , INI .) , INI .
, PY_PYTHON - "2". , (, "2" ) major.minor (, "2.6" ) major.minor-32.
PY_PYTHON
-
major.minor
major.minor-32
, PY_PYTHON{major} ( {major} - ), . , Python , , , , , .
PY_PYTHON{major}
{major}
.INI, . INI [ ], , PY_ prefix ( , INI .) , INI .
PY_ prefix
Plus Python Python, shebang #! , , * nix Windows.
#!
* Python Launcher for Windows.
Source: https://habr.com/ru/post/1684992/More articles:TypeScript Error: node_modules/@types/three/three-core.d.ts (767.24): Error TS2304: Cannot find the name "Iterable" - typescriptHow to capture the selected row of a table in a material design MD table - angularclang-4.0 generates redundant methods when initializing global variables - c ++The emulator continues to crash in android studio - androidAndroid Studio 2.3 emulator freezes / crashes - emulationFunctions declared in a loop that reference an external scope variable can lead to confusing semantics. What's wrong? - javascriptCan I use Lombok with Kotlin? - javaperl6 precision base4 conversion - perl6Android Studio 2.3.3 Logcat "Unable to connect to the editor ..." when using the emulator; what to do? - androidIs there any difference between Dictionary.Keys.Contains (key) and Dictionary.ContainsKey (key) - c #All Articles