Python pip: Upgrade Packages Command Under Unix or Linux

How do I upgrade packages installed via Python pip command under Unix or Linux command line?

You need to use the following syntax to upgrade pakcage using the pip command under Unix or Linux operating systems:

Tutorial details
Difficulty level Easy
Root privileges Yes/No
Requirements Python pip
Est. reading time N/A

pip install PackageNameHere --upgrade


pip install PackageNameHere -U

In this example, I’m upgrading ftp-cloudfs package installed previously with the pip command:
$ pip install ftp-cloudfs --upgrade
Sample outputs:

Downloading/unpacking ftp-cloudfs from
  Downloading ftp-cloudfs-0.19.tar.gz
  Running egg_info for package ftp-cloudfs
Requirement already up-to-date: pyftpdlib in ./py_virtual/lib/python2.6/site-packages (from ftp-cloudfs)
Requirement already up-to-date: python-cloudfiles in ./py_virtual/lib/python2.6/site-packages (from ftp-cloudfs)
Requirement already up-to-date: python-daemon in ./py_virtual/lib/python2.6/site-packages (from ftp-cloudfs)
Requirement already up-to-date: python-memcached in ./py_virtual/lib/python2.6/site-packages (from ftp-cloudfs)
Downloading/unpacking setuptools from (from python-daemon->ftp-cloudfs)
  Downloading setuptools-0.6c12dev-r88846.tar.gz (257kB): 257kB downloaded
  Running egg_info for package setuptools
Requirement already up-to-date: lockfile>=0.9 in ./py_virtual/lib/python2.6/site-packages (from python-daemon->ftp-cloudfs)
Installing collected packages: ftp-cloudfs, setuptools
  Found existing installation: ftp-cloudfs 0.18
    Uninstalling ftp-cloudfs:
      Successfully uninstalled ftp-cloudfs
  Running install for ftp-cloudfs
    changing mode of build/scripts-2.6/ftpcloudfs from 644 to 755
    changing mode of /home/vivek/py_virtual/bin/ftpcloudfs to 755
  Found existing installation: setuptools 0.6c11
    Uninstalling setuptools:
      Successfully uninstalled setuptools
  Running install for setuptools
    Installing easy_install script to /home/vivek/py_virtual/bin
    Installing easy_install-2.6 script to /home/vivek/py_virtual/bin
Successfully installed ftp-cloudfs setuptools
Cleaning up...

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum