Installing required libraries to Jupyter Notebook labs
If you need additional Python packages to be installed in your lab, create a requirements.txt file and list in this file all the required libraries.
There are two ways for learners to install these additional packages:
- Using the pip tool
- Using the Install requirements option in the lab interface
Installing additional packages using pip
To install a library, the learner needs to enter the following command in a cell in the .ipynb file:
| [Copy Code](javascript:void(0)) Python |
!pip install <library_name> |
Installing additional packages using Install requirements
To install all the libraries from the requirements.txt file, the learner can use the Install requirements option.
