For Environment: win7,python2.7
requires virtualenv module
1. Test whether the Virtualenv module is installed
import virtualenv #没有报错则已安装
You will need to install the Virtualenv module
pip install virtualenv
2. First create a directory (f://learning_log)
switch to the corresponding directory after use: virtualenv ll_env #ll_env虚拟环境名 (optional)
3. Activate
ll_env\scripts\activate
display (ll_env) F:\learning_log> The activation is successful
Note: Windows users may get an error when activating, as the Activate.bat will be in the same ACTIVATE.PS1 is generated in the directory, and PowerShell is not allowed to execute *.ps1 by default script files. So first you need to turn on permissions. Open permissions only need to be in PowerShell execute Set-executionpolicy RemoteSigned. Enter Y last, and enter!
Then, enter the activation instructions again in the corresponding directory to activate.
4. Exit the virtual Environment
(ll_env) f:\learning_log>ll_env\scripts
Create a virtual Environment (virtualenv module) in Python