In the CodeHS IDE you can install libraries via the Python Package Index.

To specify libraries to install, create a file named "requirements.txt". Within that file, write the name of each package on its own line.

Animated .gif demonstrating how to create a requirements text flie

When you run your program, the libraries will automatically be installed for use in your program!

Animated .gif showing the user running a file that has installed a library

You can view this program in action here:

Still have questions? Contact our team at to learn more!

Did this answer your question?