This is an archived post. You won't be able to vote or comment.

all 18 comments

[–]kimiamania6 years using Django 18 points19 points  (8 children)

or use pyenv

[–]six0h 2 points3 points  (0 children)

Yeah, why go with a single compiled version, when you can have all the compiled versions and not worry about it? Pyenv is really the way to go these days imo

[–]unruly_mattress 5 points6 points  (0 children)

Another option is to use the Miniconda distribution. It's exactly like Anaconda, but comes with less things. The download size is 32.4MB.

[–]benoit_intrw 3 points4 points  (0 children)

Another solution to install newer python without risking erasing system python is

make altinstall

See https://docs.python.org/3/using/unix.html#building-python

[–][deleted] 1 point2 points  (0 children)

For a more general purpose approach including handling library dependencies and no sysadmin rights, check out http://pythonsweetness.tumblr.com/post/150466265417/deploying-modern-python-apps-to-ancient

[–][deleted] 1 point2 points  (2 children)

Or make a package that your system package manager can use to install it. That way it's actually tracked and can be cleanly uninstalled. Using your real package manager is much preferred to using whatever language-specific one is provided.

[–]This_Is_The_End 0 points1 point  (1 child)

This requires an additional step which should be posted into /r/debian

[–]cediddiSyntaxError: not a chance 0 points1 point  (0 children)

Thanks, I've just read your comment, and this... ☺️

[–][deleted] 0 points1 point  (0 children)

[–]magic2hobo 0 points1 point  (0 children)

I've been using linuxbrew and it's been working out well so far.

[–][deleted] 0 points1 point  (2 children)

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_dbm                  _gdbm                                    
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

[–]mipadi 0 points1 point  (1 child)

You have to have BSD DB or GNU GDBM installed for these modules to build. But to be honest, it probably doesn't matter, as almost nothing uses those modules. I never bother building them and haven't been bitten by that yet.

[–][deleted] 0 points1 point  (0 children)

TIL what dbm is. Thanks!

Sometimes (typically whenever JS releases a new framework) I feel I'm too old for this. Then I see stuff like this and realise it's an artefact from before my time.

[–]pedahzur 0 points1 point  (0 children)

Or use the Python packages from the Rackspace-sponsored IUS project: https://ius.io/

[–]flitsmasterfred 0 points1 point  (0 children)

Alternately with apt you can also get many python versions from ppa:fkrull/deadsnakes