我的Python开发环境(2020版)
My Requirements
I do have somewhat specific (maybe unusual?) requirements:
I need to develop against multiple Python versions - various Python 3 versions (3.6, 3.7, 3.8, mostly), PyPy, and occasionally Python 2.7 (less and less often, thankfully).
I work on many projects simultaneously, each with different sets of dependencies, so some sort of virtual environment or isolation is critical.
I use multiple OSes: macOS at work, and Linux (well, Linux-ish - actually it’s WSL) at home.
I want to avoid using the System-provided Python. On macOS it’s too outdated. On Linux, the system Python is used by the OS itself, so if you hose your Python you can hose your system.
I use a bunch Python-based CLI stuff, like youtube-dl, awscli, doc2dash, etc. I want to be able to install and use them without fussing around with activating environments, but I also don’t want their dependencies to clutter up a global installation.
I usually deploy through a Docker-based deployment, either to Heroku, AWS, or GCP.
Although Docker meets all these requirements, I don’t really like using it. I find it slow, frustrating, and overkill for my purposes.
阅读全文