Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 911 Bytes

16.1-install-python-venv.md

File metadata and controls

46 lines (37 loc) · 911 Bytes

Install Python Virtual Environment

How to Install Python Virtual Environment on Raspberry Pi 3 Model B+

Prerequisite(s):

1 - Install Python Virtual Environement


pi@raspberry:~ $ pip install virtualenv

2 - Create Python Virtual Environement


pi@raspberry:~ $ python -m venv ENVIRONMENT-NAME

OR

pi@raspberry:~ $ virtualenv ENVIRONMENT-NAME

5 - Load/Activate Python Virtual Environment


pi@raspberry:~ $ source ENVIRONMENT-NAME/bin/activate
(ENVIRONMENT-NAME) pi@raspberry:~ $

Deactivate Python Virtual Environment


(ENVIRONMENT-NAME) pi@raspberry:~ $ deactivate
pi@raspberry:~ $

Remove Python Virtual Environment


pi@raspberry:~ $ sudo rm -rf ENVIRONMENT-NAME/