Skip to content

Instantly share code, notes, and snippets.

@gorobey
Forked from lowvoltage/Python-on-Raspberry.md
Created February 14, 2021 22:38
Show Gist options
  • Save gorobey/30f308ce3b326dff3a96f438775f71cd to your computer and use it in GitHub Desktop.
Save gorobey/30f308ce3b326dff3a96f438775f71cd to your computer and use it in GitHub Desktop.
Setting up a Python3 dev environment on the Raspberry Pi

Install required packages:

$ sudo apt-get install -y python3 python-pip
$ sudo pip install virtualenv

Setup and activate a Python 3 virtual environment named "venv":

$ virtualenv -p python3 venv
$ source venv/bin/activate

Test python version:

$ python --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment