-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recommend pipx
as the installation method of choice
#3022
Comments
I've tested this out in a Windows VM, my macbook, and a docker container running ubuntu and works great! The only caveat is that you must pass the |
pipx
as the installation method of choicepipx
as the installation method of choice
I just had a generally positive experience trying out
Each of these is installed in a separate venv:
Only the first one is directly symlinked to What seems best here for users?
For us?
What feels less good?
One thing we may want is to add anonymous usage tracking for how folks are installing dbt (i.e. |
To summarize where we ended up on this: The granular specificity of Homebrew, and the fact that we occasionally need to override some dependencies (e.g. dbt-labs/homebrew-dbt#10), can be as much a feature as a bug. It will be an asset for us if/when we want to release dbt with Rust components. I'm going to close this one for now, but we may revisit later on! |
Describe the feature
Recommend using pipx to install
dbt
as a cli app for all OS.Describe alternatives you've considered
The alternatives are to continue suggesting pip and Homebrew as recommended installation methods. pip is certainly the best way to install dbt. Homebrew is starting to become difficult to maintain because it wants to install all dependencies from source without using any accessible features of pip. We should continue trying our best to maintain Homebrew formulas for dbt, but some external dependencies are very challenging or impossible to install from source without jumping through a bunch of hoops. Homebrew is supposed to make the installation process of macOS easier and more accessible, it is evident that this is not the case at the moment.
pipx
can be a drop in replacement for Homebrew and for installing dbt globally. IMO this better than trying to manage your own virtualenv and installing via pip, it takes care creating an isolated environment for you.Additional context
pipx
addresses some shortcomings of Homebrew as well. Withpipx
, users can install any adapter (dbt-postgres
,dbt-spark
, etc.).Who will this benefit?
I think this will help with new users especially. They will enjoy the more stable pip installation of dbt without dealing with any virtualenv management. Also, this will benefit the sanity of maintainers. There are less variables at play when using
pipx
, so debugging and helping users install software should be easier.Are you interested in contributing this feature?
Of course! The only change involved is updating https://docs.getdbt.com/dbt-cli/installation I believe. I can move this issue over to the documentation repo once this gets some input.
The text was updated successfully, but these errors were encountered: