[PYTHON] Update package with pip standard features only

For the time being, it is for those who want to update the package managed only by the standard function of pip.

Preparation

The environment is Win7 64bit. If PyCharm is running, an access error will occur during the update, so please close it. Start a command prompt with administrator privileges and enter commands.

Display package list

pip list -o To get the list of packages. The package name is displayed at the beginning, followed by the current version and the latest version.

>pip list -o Pillow (2.8.1) - Latest: 3.2.0 [wheel] PySide (1.2.2) - Latest: 1.2.4 [wheel] setuptools (12.0.5) - Latest: 21.2.1 [wheel]

Package update

pip install -u package name After that, update the package manually. -U is the same as --upgrade. For example, an update for the Pillow package would look like this:

>pip install -U Pillow Collecting Pillow Downloading Pillow-3.2.0-cp34-none-win32.whl (1.2MB) 100% |################################| 1.2MB 793kB/s Installing collected packages: Pillow Found existing installation: Pillow 2.8.1 Uninstalling Pillow-2.8.1: Successfully uninstalled Pillow-2.8.1 Successfully installed Pillow-3.2.0

Recommended Posts

Update package with pip standard features only
Bulk update with pip (with confirmation)
About package management with conda and pip
Python installation and package management with pip
I can't install the package with pip.
Get only the source code of the PyPI package with pip from the command line
Read wav files with only Python standard packages
Installing packages with pip3
ubuntu package update script
Error with pip install
Use pip with MSYS2
Install scikit.learn with pip
Can't find the package you installed with pip install --user?
Update packages already installed with pip in user environment (non-su)
Steps to install a Git cloned package locally with pip