For the time being, it is for those who want to update the package managed only by the standard function of pip.
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.
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]
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