python- virtual environment virtualenv

Sometimes downloaded from github open source projects would like to run in the local debugging, development of the project depends on the local environment is inconsistent with third-party packages, this time on a virtual environment used python environment ...

windows on the building steps:

C: \ the Users \ acer> PIP install virtualenv 
Collecting virtualenv 
  Downloading HTTPS: // files.pythonhosted.org/packages/f7/69/1ad2d17560c4fc60170056dcd0a568b83f3453a2ac91155af746bcdb9a07/virtualenv-16.7.4-py2.py3-none-any.whl (3.3MB) 
     | ████████████████████████████████ | 3 .3MB 48kB / S 
Installing Collected Packages Standard Package: virtualenv 
Successfully Installed virtualenv - 16.7 . 4 

D: \ > E: 
E: \ > virtualenv py36_testenv # create a name for the virtual environment py36_testenv 
the Using Base prefix ' E: Soft \\ \\ \\ python36 Python '
Python Executable New in E: \ py36_testenv \ Scripts \ python.exe 
Installing setuptools, PIP, Wheel ... 
DONE . 

E: \ > dir 
 drive E is a local disk volumes in 
 Volume Serial Number is F460 - F4B7 

 E: \ is Catalog 

2019 / 07 / 22 is   21 is : 49     <the DIR>           360 user document
 2019 / 08 / 25   23 is : 42 is     <the DIR>           BaiduNetdiskDownload
 2019 / 08 / 21 is   23 is : 40     <the DIR>          linux_chao
 2019 / 08 / 31   10 : 31     <DIR>           myproj
 2019 / 08 / 31   23 : 55     <DIR>           py36_testenv
 2019 / 08 / 22   20 : 43     <DIR>           robot
 2019 / 08 / 07   21 : 04     <DIR>           soft
 2019 / 07 / 15   22 : 48    <The DIR>           Test
 2019 / 06 / 06   20 is : 31 is     <the DIR>           Yi Yao
                0 files               0 bytes
                . 9 directories 108 , 580 , 327 , 424 bytes available 

E: \ > CD py36_testenv 

E: \ py36_testenv > CD the Scripts 

E : \ py36_testenv \ the Scripts > the dir 
 drive roll E is a local disk 
 volume serial number is F460 - F4B7 

 E: \ py36_testenv \ the Scripts directory 

2019 / 08 /31  23:56    <DIR>          .
2019/08/31  23:56    <DIR>          ..
2019/08/31  23:56             2,295 activate
2019/08/31  23:56               873 activate.bat
2019/08/31  23:56             1,755 activate.ps1
2019/08/31  23:56             1,149 activate.xsh
2019/08/31  23:56             1,517 activate_this.py
2019/08/31  23:56               512 deactivate.bat
2019/08/31  23:55           102,773 easy_install-3.6.exe
2019/08/31  23:55           102,773 easy_install.exe
2019/08/31  23:56           102,755 pip.exe
2019/08/31  23:56           102,755 pip3.6.exe
2019/08/31  23:56           102,755 pip3.exe
2019/08/31  23:55           100,504 python.exe
2019 / 08 / 31 is   23 is : 55             58 , 520. python3.dll
 2019 / 08 / 31 is   23 is : 55          . 3 , 610 , 776 python36.dll
 2019 / 08 / 31 is   23 is : 55             98 , 968 pythonw.exe
 2019 / 08 / 31 is   23 is : 56 is            102 , 751 Wheel.exe
               16 files       4, 493 , 431 bytes
                2 directories 108 , 580 , 327 , 424 bytes available 

E: \ py36_testenv \ the Scripts > the activate      # virtual environment is activated 

(py36_testenv) E: \ py36_testenv \ the Scripts > PIP the install pytest == 3.6 . . 3 

( py36_testenv) E: \ py36_testenv \ Scripts> deactivate # exit the virtual environment

 

Guess you like

Origin www.cnblogs.com/wang-mengmeng/p/11441074.html