List packages that can be updated with pip

List installed packages of pip

You can view the list of installed packages with pip list or pip freeze. However, if you add an option, you can also display a list of updatable packages and a list of the latest packages. This is convenient if you want to update installed packages in bulk.

A long time ago, I had to use the pip-review command of pip-tools, so it's convenient to be able to do it with the pip option.

** List of updatable packages **

$ pip list -o
google-api-python-client (1.5.0) - Latest: 1.5.1 [wheel]
Pillow (3.1.1) - Latest: 3.2.0 [sdist]
pytz (2015.7) - Latest: 2016.4 [wheel]

Options are -o or --outdated.

** Latest package list **

$ pip list -u
pip (8.1.2)
ujson (1.35)
wheel (0.29.0)

Options are -u or --uptodate.

Bulk update of updatable packages

If everything is up to date and there is no problem, the following is OK.

$ pip list -o | awk '{print $1}' | xargs pip install -U

Recommended Posts

List packages that can be updated with pip
Color list that can be set with tkinter (memorial)
Install packages that need to be compiled with Python3 with pip [Windows]
File types that can be used with Go
Installing packages with pip3
Import libraries that cannot be pip installed with PyCharm
Limits that can be analyzed at once with MeCab
List the classes that can be referenced by ObjCClass
Packages that should be included
Format summary of formats that can be serialized with gensim
It seems that Skeleton Tracking can be done with RealSense
I investigated the pretreatment that can be done with PyCaret
Let's make a diagram that can be clicked with IPython
requirements.txt can be commented out with #
Confirmation that rkhunter can be installed
[Python] Make a graph that can be moved around with Plotly
Make a Spinbox that can be displayed in Binary with Tkinter
I made a shuffle that can be reset (reverted) with Python
Make a currency chart that can be moved around with Plotly (2)
Comparison of 4 styles that can be passed to seaborn with set_context
Make a Spinbox that can be displayed in HEX with Tkinter
Make a currency chart that can be moved around with Plotly (1)
Acoustic signal processing module that can be used with Python-Sounddevice ASIO [Application]
Create a web app that can be easily visualized with Plotly Dash
Mathematical optimization that can be used for free work with Python + PuLP
Draw a graph that can be moved around with HoloViews and Bokeh
Measures that pip install cannot be done with pycharm or import ssl cannot be done
Acoustic signal processing module that can be used with Python-Sounddevice ASIO [Basic]
Items that cannot be imported with sklearn
Get a list of camera parameters that can be set with cv2.VideoCapture and make it a dictionary type
A memo for making a figure that can be posted to a journal with matplotlib
I want to create a priority queue that can be updated in Python (2.7)
I made a familiar function that can be used in statistics with Python
Functions that can be used in for statements
"Temporary solution" when pip cannot be updated [Python]
Building Sphinx that can be written in Markdown
The story that fits in with pip installation
List of tools that can be used to easily try sentiment analysis of Japanese sentences in Python (try with google colab)
Convert images from FlyCapture SDK to a form that can be used with openCV
I quarantined my environment with virtualenv, but I get a lot of packages with pip list
[Python] Introduction to web scraping | Summary of methods that can be used with webdriver
Morphological analysis and tfidf (with test code) that can be done in about 1 minute
File sharing server made with Raspberry Pi that can be used for remote work
The story that sendmail that can be executed in the terminal did not work with cron
Basic algorithms that can be used in competition pros
Japanese can be used with Python in Docker environment
Features that can be extracted from time series data
ANTs image registration that can be used in 5 minutes
Find out the location of packages installed with pip
[Django] About users that can be used on template
Deep learning course that can be crushed on site
List of my articles that may be useful in competition pros (updated from time to time)
Problem that pip install cannot be done with pyenv + Yosemite (error: command'clang' failed with exit status 1)
How to display hover text and text that can be executed by clicking with Minecraft plugin