-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Course
data-engineering-zoomcamp
Question
After installing dbt, running dbt build returns:
Command 'dbt' not found
How do I fix this?
Answer
This usually happens because dbt was installed inside a virtual environment that is not activated.
Steps to fix:
-
Activate your virtual environment:
source ~/venvs/zoomcamp/bin/activate
-
Verify dbt is installed inside it:
which dbt
It should return something like:
~/venvs/zoomcamp/bin/dbt -
If dbt is not installed, install it inside the activated environment:
pip install dbt-bigquery
-
Confirm installation:
dbt --version
If you want dbt available globally (not recommended), ensure the installation path is added to your PATH variable.
Checklist
- I have searched existing FAQs and this question is not already answered
- The answer provides accurate, helpful information
- I have included any relevant code examples or links
Reactions are currently unavailable