Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No windows, but on Linux and MacOS, I use the package manager or brew to install a system Python3, from which I derive venvs for basically all installations of new tools. I use one of the install flags to include the Python version in use in the prompt.

In addition, I use pyenv (pyenv) for development. I always install the newest Python version with eg `CONFIGURE_OPTS="--enable-optimizations" pyenv install 3.7.4` which IME consistently produces a ~10% faster Python compared to the various package managers. This makes it really simple to include in each project a `.python-version` file that tox will happily use to facilitate testing on multiple versions. As above, each project gets its own venv from the pyenv-based Python (I usually do the development using the most recent stable, but if you wanted to use a different version for the venv and development and just test against the most recent stable with tox that should also work).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: