Install Python Virtual Environment How to Install Python Virtual Environment on Raspberry Pi 3 Model B+ Prerequisite(s): Install and Configure Python and PIP on your Raspberry Pi 3 Model B+ 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/