Daniel van Flymen Follow twitter.com/van_ymen • blockchain enthusiast & photographer • http://dvf.nyc • south african in nyc ✌ Oct 23 · 5 min read Use pyenv + Pipenv for local Python development The missing guide for setting up a great local development workow for your Python projects. his is an opinionated way of developing with Python locally. You’ve probably discovered that it’s a pain in the ass to manage dierent projects with dependencies targeting dierent Python versions on your local machine. To complicate things, there are multiple ways of installing Python too: Preinstallation by the OS Using a package manager like brew or apt T • • “Python Environment” by xkcd Using the binaries from www.python.org Using pyenv—easy way to install and manage Python installations
This guide uses pyenv to manage Python installations, and Pipenv to manage project dependencies (instead of raw pip). • • . . . Installing pyenv Let’s install via brew : $ bre