(Python Only) Using a Requirements File

For a Python project, you can specify a list of the packages you want in a requirements.txt file that lives in your project. The packages can be installed all at once using pip/pip3.

  1. Create a new file called requirements.txt file within your project:
  2. To install the packages in a Python 3 engine, run the following command in the workbench command prompt.
    !pip3 install -r requirements.txt
    For Python 2 engines, use pip.
    !pip install -r requirements.txt