Feb-14-2019, 03:04 PM
Follow Python 3.6/3.7 and pip installation under Windows
Look last in post
So Python 3.7 will be main version in Path,access to 2.7 you use
From cmd:
Look last in post
Access other versions
.So Python 3.7 will be main version in Path,access to 2.7 you use
py
. From cmd:
Microsoft Windows [Version 10.0.17134.523] (c) 2018 Microsoft Corporation. Med enerett. C:\Windows\System32>cd\ # Main version in Path C:\>python -V Python 3.7.0 # Test pip C:\>pip -V pip 19.0.2 from c:\python37\lib\site-packages\pip (python 3.7) # Access 2.7 C:\>py -2.7 -V Python 2.7.9 # Run file with python 2.7 C:\>py -2.7 my_code.py # Using pip to install to 2.7 C:\> py -2.7 -m pip install logzero