Edit on GitHub

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 dvc

Depending 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 get Command 'dvc' not found after installation. If restarting the terminal isn't desirable (e.g. containers), it's also possible to manually edit the PATH env variable.

Install with conda

$ conda install -c conda-forge mamba # installs much faster than conda
$ mamba install -c conda-forge dvc

Depending 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-s3

In this case it installs the boto3 library along with DVC.

Install with snap

Requires snapd.

$ snap install --classic dvc

💡 When connected to the internet, snap will automatically look for updates every 6 hours.

Install from repository

$ sudo wget \
       https://dvc.org/deb/dvc.list \
       -O /etc/apt/sources.list.d/dvc.list
$ wget -qO - https://dvc.org/deb/iterative.asc | gpg --dearmor > packages.iterative.gpg
$ sudo install -o root -g root -m 644 packages.iterative.gpg /etc/apt/trusted.gpg.d/
$ rm -f packages.iterative.gpg
$ 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 dvc

Install from package

Get the binary package from the big "Download" button on the home page. Then install it with the following command.

$ sudo apt install ./dvc_0.62.1_amd64.deb
$ sudo yum install dvc-0.62.1-1.x86_64.rpm
Content

🐛 Found an issue? Let us know! Or fix it:

Edit on GitHub

Have a question? Join our chat, we will help you:

Discord Chat