3 ms·
My frustration with managing different Python versions is what motivated me to finally go out and learn Docker, after running into scenarios where I needed to m
by aquova 4y ago
My frustration with managing different Python versions is what motivated me to finally go out and learn Docker, after running into scenarios where I needed to manage different versions of Python with different versions of each library.
- whalesalad 4y agopyenv will do this with the virtualenv integration, so you get the best of both worlds: pyenv virtualenv <python-version> <env-name> pyenv activate <env-name> pip install ...
- sonthonax 4y agoNot really an option on a Mac. Docker is so incredibly slow not only because of the virtualisation layer, but because of file system performance (Python hits a lot of files on startup). It’s also not that complex at the end of the day. You have two things involved in managing python versions: the executable you’re running, and the PYTHONPATH. I actually don’t understand why people find that so complex. A virtual environment is: an alias to a python executable; a folder called ‘site-packages’ which is then added to the PYTHONPATH; and a script to set you PATH and PYTHONPATH.
- samwillis 4y agoI get what you mean but being on a Mac I now avoid Docker for development, it seemed to cut my battery life in half whenever it was running.