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.

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

You can view this program in action here:


https://codehs.com/sandbox/andy/Python_Requirements

Still have questions? Contact our team at hello@codehs.com to learn more!

Did this answer your question?