python-logo

Python base hacks

How to start work with Virtual Environment in PowerShell?

pip install virtualenv #Install Virtual Environment
python -m venv venv #create one

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine #With Admin priveleges

.\venv\Scripts\Activate #activate
deactivate #deactivate

 

See also  How to make active page button highlight in Django
Author: admin

Leave a Reply

Your email address will not be published. Required fields are marked *