Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
View the process for setting up a Python project using a virtual environment and GitHub.
Note: We're installing SQLAlchemy to practice creating the requirements.txt
file not because every Python project will need SQLAlchemy. If you'd rather install something else instead, go for it!
Virtual Environment Steps
- Install virtual environment
- Mac:
python3 -m pip install --user virtualenv
- Windows:
py -m pip install --user virtualenv
- Mac:
- Create a virtual environment
- Mac:
python3 -m venv env
- Windows:
python -m venv env
- Mac:
- Activate your environment
- Mac:
source ./env/bin/activate
- Windows:
.\env\Scripts\activate
- Mac:
GitHub Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up