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:
pip install PackageNameHere --upgrade
OR
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 http://pypi.python.org/packages/source/f/ftp-cloudfs/ftp-cloudfs-0.19.tar.gz#md5=337533ccb97ee4fa493ee29b9c009c0f
Downloading ftp-cloudfs-0.19.tar.gz
Running setup.py 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 http://peak.telecommunity.com/snapshots/setuptools-0.6c12dev-r88846.tar.gz (from python-daemon->ftp-cloudfs)
Downloading setuptools-0.6c12dev-r88846.tar.gz (257kB): 257kB downloaded
Running setup.py 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 setup.py 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 setup.py 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...
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop





![Rackspace Cloud Files: Upload Files Using Secure FTP (SFTP) Client [ sftp-cloudfs ]](http://s0.cyberciti.org/uploads/faq/2013/02/rackspace-cloud-files-cdn-url-150x150.jpg)







{ 0 comments… add one now }