The author switches from virtualenvwrapper to a combination of direnv, uv, and Starship for managing Python virtual environments. They detail their previous workflow and the new setup, along with solutions for customizing prompts, virtual environment directories, and reducing unnecessary shell messages. The new setup leverages direnv to automatically activate virtual environments, uv to quickly create them, and Starship to customize the shell prompt.

7m read timeFrom treyhunner.com
Post cover image
Table of contents
My old virtualenvwrapper workflowThe initial setupNo shell prompt?Wrong virtual environment directoryLoading, unloading, loading, unloading…The more advanced setupSwitching to uvSwitching to starshipGround control to major TOMLThe necessary tools

Sort: