Installation on Linux
To use DVC as a Python library, you can install it
with pip or with conda.
Install with pip
We strongly recommend creating a virtual environment or using pipx to encapsulate your local environment.
Note that Python 3.8+ is needed to get the latest version of DVC.
$ pip install dvcDepending on the type of the remote storage you plan to use, you might need to
install optional dependencies: [s3], [gdrive], [gs], [azure], [ssh],
[hdfs], [webdav], [oss]. Use [all] to include them all.
$ pip install "dvc[s3]"In this case it installs the boto3 library along with DVC.
Restart your terminal, or re-source the shell configuration file (
.bashrc,.zshrc, etc.) if you getCommand 'dvc' not foundafter installation. If restarting the terminal isn't desirable (e.g. containers), it's also possible to manually edit thePATHenv variable.
Install with conda
Requires Miniconda or Anaconda Distribution.
$ conda install -c conda-forge mamba # installs much faster than conda
$ mamba install -c conda-forge dvcDepending on the type of the remote storage you plan to use, you might need to
install optional dependencies: dvc-s3, dvc-azure, dvc-gdrive, dvc-gs,
dvc-oss, dvc-ssh.
$ conda install -c conda-forge mamba
$ mamba install -c conda-forge dvc-s3In this case it installs the boto3 library along with DVC.
Install with snap
Requires snapd.
$ snap install --classic dvc💡 When connected to the internet,
snapwill automatically look for updates every 6 hours.
Install from repository
$ sudo apt install wget gpg
$ sudo mkdir -p /etc/apt/keyrings
$ wget -qO - https://dvc.org/deb/iterative.asc | sudo gpg --dearmor -o /etc/apt/keyrings/packages.iterative.gpg
$ echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/packages.iterative.gpg] https://dvc.org/deb/ stable main" | sudo tee /etc/apt/sources.list.d/dvc.list
$ sudo chmod 644 /etc/apt/keyrings/packages.iterative.gpg /etc/apt/sources.list.d/dvc.list
$ sudo apt update
$ sudo apt install dvc$ sudo wget \
https://dvc.org/rpm/dvc.repo \
-O /etc/yum.repos.d/dvc.repo
$ sudo rpm --import https://dvc.org/rpm/iterative.asc
$ sudo yum update
$ sudo yum install dvcInstall from package
Get the binary package from the big "Download" button on the home page. Then install it with the following command.