dbt installation guide:
The dbt package will be installed into a python virtual environment. This way we can install different version of dbt (or python) on your computer and check if the project still works or where it breaks. So whenever installing a new version of dbt, create a new virtual environment and install the dbt package in it.
-
I used Ubuntu 18.04 to install the dbt version 0.16.1 and virtualenv. First we will install virtualenv to have a clean isolated environment
-
Install virtualenv
sudo apt install virtualenv
-
Create Virtual Environment
python3 -m venv vm_dbt_package
-
Login to your virtual environment. First enter your VM directory
cd vm_dbt_package
-
Then activate the VM with the command
source bin/activate
-
Upgrade pip in your virtual environment
pip install --upgrade pip
-
It might be necessary to install or upgrade your setuptools package as well
pip install --upgrade setuptools
-
Now try to install dbt
pip install dbt
-
Check the dbt version
dbt --version
-
After the installation of dbt you can check which packages have been installed in your virtual environment
pip list
You should see now several dbt packages and other python packages.