我不得不使用pip安装Python软件包和库,但是每次这样做,都表示我使用的是pip的较早版本,并且可以通过运行以下命令获得v18.1
python -m pip install --upgrade pip
当我运行此命令时,它只是说同样的话。它显然无法更新,因为它已过时。有什么方法可以解决此问题,也许可以通过手动更新来解决?
在此先感谢社区!
更新:我正在使用的操作系统是Windows 10和Python 3.6.4。以下屏幕截图是运行命令时输出的内容。
每次尝试在 Python 3 中安装软件包时,我都会遇到以下问题:
WARNING: You are using pip version 20.2.4; however, version 20.3.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command
Run Code Online (Sandbox Code Playgroud)
我尝试按如下方式执行升级 pip 命令,并显示以下警告:
$ pip3 install --upgrade pip
Collecting pip
Using cached pip-20.3.1-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Successfully installed pip-20.3.1
WARNING: You are using pip version 20.2.4; however, version 20.3.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command
Run Code Online (Sandbox Code Playgroud)
我尝试了另一种方式,但出现了同样的错误:
$ /usr/bin/python3 -m …Run Code Online (Sandbox Code Playgroud)