Szymon Lipiński
Szymon Lipiński

Reputation: 28584

update python modules

How can I update all python modules I have installed on ubuntu?

Upvotes: 4

Views: 8618

Answers (3)

Farshid Ashouri
Farshid Ashouri

Reputation: 17691

Here is a one click simple command to do so:

pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs sudo pip install -U

Upvotes: 2

user193476
user193476

Reputation:

Ubuntu's repositories usually contain up-to-date versions of Python modules (prefixed with python-) and if you do an apt-get dist-upgrade will update any that you've installed from the repos.

As for packages you may have installed with easy_install, you could use distribute to upgrade them.

Alternatively, you can construct a list of packages you have installed with yolk, and pass the packages in the list from yolk -l to easy_install.

Upvotes: 3

ewall
ewall

Reputation: 28100

Checkout setuptools (a/k/a "easy_install"), the classic way of doing it, or distribute, the new way to handle all your Python module installation needs.

Upvotes: 1

Related Questions