Live data from Hacker News

Ask HN: Simple but modern Python dev set-up?

news.ycombinator.com

21–26 of 26 posts

Re: Ask HN: Simple but modern Python dev set-up?

#21

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.

Def need a REPL. Sounds dumb, I'm sure. But I've only realized this recently. Interactive speed and instant feedback can make all the difference. It's only a few seconds saved, but at every iteration. Whew! Forgetabout it.

Re: Ask HN: Simple but modern Python dev set-up?

#24
post #13

Venv 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?

#25
post #24
post #13

Venv 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.

How so? If there is no pythonX.Y on path nothing will happen.

Re: Ask HN: Simple but modern Python dev set-up?

#26
post #25
post #24

Earlier 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.

Installing any arbitrary python version is a rather simple affair on most platforms. On windows you simply run another installer, and on linux you can usually install a package for a specific version. Once you've got the right python version somewhere on your system you can start creating venvs.

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.

Post reply on HN