python -m pip install and pip install

Hongyi Zhao hongyi.zhao at gmail.com
Thu Oct 17 06:36:49 EDT 2019


On Fri, 11 Oct 2019 07:35:23 +0300, אורי wrote:

> When you upgrade pip, you have to write:
> 
> python -m pip install --upgrade pip
> 
> When you install or upgrade anything else, you can write "pip install".
> 
> You can't upgrade pip using "pip install --upgrade pip".

No, see the following:

werner at debian-01:~$ pip install --upgrade pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pip
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4a/
08/6ca123073af4ebc4c5488a5bc8a010ac57aa39ce4d3c8a931ad504de4185/pip-19.3-
py2.py3-none-any.whl (1.4MB)
     |████████████████████████████████| 1.4MB 2.2MB/s 
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-19.3



More information about the Python-list mailing list