encord-agents
in your current environment, you can run:
Installing the
vision
extras is advised for most users. These dependencies optimize performance when handling visual data formats.If you are building serverless deployments (for example: AWS Lambda) or working with non-visual data (labels, priorities, text, PDFs, or audio), you may skip the vision extras to minimize bundle size.Encord Agents requires
python >= 3.10
. If you do not have Python 3.10, we recommend usingpyenv
to manage your Python versions.Using an Isolated Environment (Recommended)
We recommend installing the Encord agents library in an isolated environment. There are several options available.Venv
- Create a new virtual environment. In this example, we name it
agents-venv
but you can choose any name you see fit.
- Next, activate your virtual environment. This ensures that any modules you install remain isolated and that all previously installed modules in the environment are available for use in Python.
- Once activated, the environment name is displayed before the cursor in your terminal.
example
- Install the
encord-agents
library.
Poetry
If you already have a Poetry project, you can addencord-agents
to that project:
Conda
- Create a conda environment.
- We suggest activating your conda environment.
- Once activated, the environment name is displayed before the cursor in your terminal.
example
- Install the
encord-agents
library.
Dependencies
The dependencies forencord-agents
are kept lightweight, with the only relatively large dependencies being opencv-python
and numpy
. To see the full list of dependencies, see here.