pip install python安装包 出现警告 WARNING: You are using pip version 21.2.4; however, version 22.1 is 可用的

pip install python安装包 出现警告 WARNING: You are using pip version 21.2.4; however, version 22.1 is 可用的,第1张

昨天试了一些方法不行,今天解决了,记录一下
终端运行:

pip install pyserial

提示警告:

WARNING: You are using pip version 21.2.4; however, version 22.1 is available.
You should consider upgrading via the 'C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.  

直接

 python -m pip install --upgrade

后依旧提示警告 版本不对
之后:

python -m pip install --upgrade pip
Starting Python ...
Requirement already satisfied: pip in e:\program\amesim\install\amesim\sys\python\win64\lib\site-packages (21.3.1)

 pip install --target=e:\program\amesim\install\amesim\sys\python\win64\lib\site-package
s pyserial

成功

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/922869.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-16
下一篇 2022-05-16

发表评论

登录后才能评论

评论列表(0条)

保存