Installing CodeCarbon
From PyPi repository
The package is hosted on the pip repository here.
To install the package, run the following command in your terminal.
pip install codecarbon
Using Conda environments
If you’re using Conda for environment management, you can install CodeCarbon with pip in your Conda environment:
conda create --name codecarbon
conda activate codecarbon
pip install codecarbon
Note
While CodeCarbon can be used in Conda environments, we no longer maintain Conda packages. We recommend using pip install codecarbon within your Conda environment, which works seamlessly with Conda.
Note
We recommend using Python 3.8 or above.
Dependencies
The following packages are used by the CodeCarbon package, and will be installed along with the package itself:
arrow
click
fief-client[cli]
pandas
prometheus_client
psutil
py-cpuinfo
nvidia-ml-py
rapidfuzz
requests
questionary
rich
typer
Please refer to pyproject.toml for the latest list of the packages used.