-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Python Development Environment
Spaceshiptrip edited this page Dec 23, 2020
·
1 revision
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.
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