Home » Questions » Computers [ Ask a new question ]

How do I install the latest version of packages in Ubuntu?

How do I install the latest version of packages in Ubuntu?

For example I want to install the latest version of "numpy". I type the following: "sudo apt-get install python-numpy". When I type this the first time it installs something and if I type this the second time it writes that I have already the latest version of numpy.

Asked by: Guest | Views: 286
Total answers/comments: 1
bert [Entry]

"Distributions (such as Ubuntu) do QA on their packages and so will not always have the latest version of everything available in their repositories as soon as they come out. The emphasis is on stability.

If you really need a more recent version for some reason, you can use Python's own package management stuff (setuptools, in case you need to install it), like so:

python easy_install numpy

This will install the latest version available on PyPI.

I would recommend removing the package installed by the distribution first, since they probably don't play well together in the event of conflicting paths."