Jul-11-2019, 11:23 AM
As mention over use the build in venv,to make virtual environment.
None of your picture link works.
Basic install Python 3.6/3.7 and pip installation under Windows.
From start all in done in
None of your picture link works.
Basic install Python 3.6/3.7 and pip installation under Windows.
From start all in done in
cmd
,i use cmder daily and not cmd. # Check python version E:\div_code>python -V Python 3.7.3 # Check pip E:\div_code>pip -V pip 19.1.1 from c:\python37\lib\site-packages\pip (python 3.7) # Make virtual environment E:\div_code>python -m venv my_env # Cd in E:\div_code>cd my_env # Activate environment, see after (my_env) E:\div_code\my_env>E:\div_code\my_env\Scripts\Activate # Check pip again,see now that in point to my_env folder (my_env) E:\div_code\my_env>pip -V pip 19.0.3 from e:\div_code\my_env\lib\site-packages\pip (python 3.7) # Will now only install into environment (my_env) E:\div_code\my_env>pip install requests Collecting requests ..... Installing collected packages: chardet, certifi, urllib3, idna, requests Successfully installed certifi-2019.6.16 chardet-3.0.4 idna-2.8 requests-2.22.0 urllib3-1.25.3 # Test that it work my_env) E:\div_code\my_env>python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import requessts >>> >>> requests.__version__ '2.22.0' >>> exit()See also this where i explain some more.