Virtualenv / virtualenv wrapper is what I've been using for years. I tried PyEnv at one point, didn't care for it. Sublime Text for editor, Sublime REPL plugin is nice.
Ask HN: Simple but modern Python dev set-up?
21–26 of 26 posts
Re: Ask HN: Simple but modern Python dev set-up?
#22Re: Ask HN: Simple but modern Python dev set-up?
#23Re: Ask HN: Simple but modern Python dev set-up?
#24Venv is the simplest - it comes in the Python standard library and gives you the basic tools to manage virtual environments. You can start with it and see how far it gets you. If you need to manage multiple versions of Python then try pyenv or conda.
Re: Ask HN: Simple but modern Python dev set-up?
#25Venv is the simplest - it comes in the Python standard library and gives you the basic tools to manage virtual environments. You can start with it and see how far it gets you. If you need to manage multiple versions of Python then try pyenv or conda.
Venv can fairly easily manage multiple python versions too. Just run "pythonX.Y -m venv" instead of "python venv" and it'll create a venv for the specified python version.
Re: Ask HN: Simple but modern Python dev set-up?
#26Earlier quoted context omitted.
Venv can fairly easily manage multiple python versions too. Just run "pythonX.Y -m venv" instead of "python venv" and it'll create a venv for the specified python version.
How so? If there is no pythonX.Y on path nothing will happen.
Of course there are tools out there which will automagically download the right python version when creating a venv but in my opinion that's neither easier nor harder.