All Collections
Online IDE
Using the Sandbox
Installing Libraries in Python
Installing Libraries in Python

CodeHS can automatically install libraries for you to use in Python 3 programs

Zach Galant avatar
Written by Zach Galant
Updated over a week ago

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.

Check out this sandbox program as an example.

gif showing creation of requirements.txt
gif showing program running using requirements.txt file

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

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

Did this answer your question?