from Hacker News

Ask HN: Python development on Ubuntu best practices

by backslash_16 on 6/12/18, 3:20 AM with 2 comments

I'm typically a developer on Windows, and I've done a decent amount of Python on Windows.

My workflow is I install the version of Python needed, we're on 3.5/3.6 so we stay pretty current, then use venv and install all my dependencies.

When using Linux I've read I really don't want to use my system Python, even if it happens to be the correct version.

With Ubuntu specifically, and its package manager, how do I install a different version of Python or how do I de-couple Python from the OS?

It would be simple to create some sort of virtual environment and install the requirements inside it but I want to make sure I'm doing the right thing from the start.

  • by gigatexal on 6/12/18, 4:40 AM

    Vscode works really well with pipenv— that’s how we use it at our startup. Though you might like the end to end support of something like pyCharm.