Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyton venv

python -m venv newVirtualEnv				//create new virtual env
source newVirtualEnv/bin/activate  			//activate-lunix|unix
./newVirtualEnv/Scripts/activate.ps1 			//activate-Windows powershell
./newVirtualEnv/Scripts/activate.bat 		//activate-Windows cmd
cd newVirtualEnv/Scripts && . activate		//activate-Windows git bash:
  
//--Windows Execution_Policies error--
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

// check if using venv active - CLI does not have (newVirtualEnv) 
pip -V
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #pyton #venv
ADD COMMENT
Topic
Name
3+7 =