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.

  1. 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

  2. Install virtualenv

    sudo apt install virtualenv
    
  3. Create Virtual Environment

    python3 -m venv vm_dbt_package
    
  4. Login to your virtual environment. First enter your VM directory

    cd vm_dbt_package
    
  5. Then activate the VM with the command

    source bin/activate
    
  6. Upgrade pip in your virtual environment

    pip install --upgrade pip
    
  7. It might be necessary to install or upgrade your setuptools package as well

    pip install --upgrade setuptools
    
  8. Now try to install dbt

    pip install dbt
    
  9. Check the dbt version

    dbt --version
    
  10. 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.