Setup Python Development Environment - spaceshiptrip/raspberrypi GitHub Wiki
In a development environment, make sure you have the following:
- python3
- pip3
- virtualenv
Steps:
- To install
virtualenv
pip3 install --user virtualenv
- Set up virtualenv venv
python3 -m virtualenv venv
- Go into the virtualenv (defaults to bash, use appropriate source file for other shells):
source venv/bin/activate
- You can now program in python installing requirements specific to your program without affecting the entire system.
requirements.txt
Install If your software has a requirements.txt
file, that contains all the dependencies to run your program.
- Install
requirements.txt
pip3 install -r requirements.txt