Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python Virtual Environments!
You have completed Python Virtual Environments!
Okay, we’ve finished a project. What now? This video will walk you through how to take a snapshot of your virtual environment and it’s dependencies so your project can be run on any computer.
Resources
Commands
To create a requirements file that holds the virtual environment’s dependencies
pip freeze > requirements.txt
To install all dependencies listed in a requirements file
pip install -r requirements.txt
To view the contents of a file in the command line
-
cat [filename]
(macOS) -
type [filename]
(Windows)
To delete a folder in the command line
-
rm -r [foldername]
(macOS) -
rmdir [foldername] /s
(Windows)
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