Using python virtual environments for a clean and easy dbt development experience across multiple projects and versions #1136
Replies: 2 comments 2 replies
-
Will you be recommending basic virtual envs, tools like pyenv which manage multiple python packages, or some other tool? There's a lot of different ways this can go. I find for more tricky things like adapter testing, pyenv is a lifesaver. The average user could probably get by with a basic virtual environment. That said, I've seen cases where people use them to install but don't actually use the separation feature. Practically, they'll use one virtual env for everything that's always active rather than activating and deactivating them when jumping around their dev machines. This leads to all sorts of compatibility issues almost as if they'd never used on a venv in the first place. Just some thoughts I've been having I do more development with dbt and alllll the adapters. |
Beta Was this translation helpful? Give feedback.
-
I’m still wrapping me head around how this works — is this something you’re accepting submissions on? I’d love to write something on dbtenv, which we built to solve the same problem. |
Beta Was this translation helpful? Give feedback.
-
As we've shifted towards recommending folks install adapter specific packages with pip, it will be extremely worthwhile to make a high quality guide to installing dbt inside of a virtual environment within your project. Global python situations can become a nightmare, I find it much better to not install global binaries when it can be avoided!
via archived developer blog repo
Beta Was this translation helpful? Give feedback.
All reactions