在安装qiskit过程中用到pip命令,出现以下提示:
WARNING: You are using pip version 21.1.1; however, version 21.3.1 is available.
You should consider upgrading via the 'c:\users\dell\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.
解决办法:直接照抄系统给的提示
C:\Users\dell>c:\users\dell\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip
更新成功显示:
Requirement already satisfied: pip in c:\users\dell\appdata\local\programs\python\python39\lib\site-packages (21.1.1)
Collecting pip
Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
|████████████████████████████████| 1.7 MB 819 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.1.1
Uninstalling pip-21.1.1:
Successfully uninstalled pip-21.1.1
Successfully installed pip-21.3.1
利用以下代码显示pip现在的版本号:
C:\Users\dell>pip show pip
Name: pip
Version: 21.3.1
|