记录一次安装 python 第三方库时的pip version报错WARNING: There was an error checking the latest version of pip.

pip 安装包是报错 如下图

WARNING: There was an error checking the latest version of pip.

D:\Program Files\Python37>pip install pyppeteer
Looking in indexes: https://repo.huaweicloud.com/repository/pypi/simple
Requirement already satisfied: pyppeteer in d:\question\venv\lib\site-packages (1.0.2)
Requirement already satisfied: appdirs<2.0.0,>=1.4.3 in d:\question\venv\lib\site-packages (from pyppeteer) (1.4.4)
Requirement already satisfied: certifi>=2021 in d:\question\venv\lib\site-packages (from pyppeteer) (2022.12.7)
Requirement already satisfied: importlib-metadata>=1.4 in d:\question\venv\lib\site-packages (from pyppeteer) (6.0.0)
Requirement already satisfied: pyee<9.0.0,>=8.1.0 in d:\question\venv\lib\site-packages (from pyppeteer) (8.2.2)
Requirement already satisfied: tqdm<5.0.0,>=4.42.1 in d:\question\venv\lib\site-packages (from pyppeteer) (4.66.1)
Requirement already satisfied: urllib3<2.0.0,>=1.25.8 in d:\question\venv\lib\site-packages (from pyppeteer) (1.26.15)
Requirement already satisfied: websockets<11.0,>=10.0 in d:\question\venv\lib\site-packages (from pyppeteer) (10.4)
Requirement already satisfied: zipp>=0.5 in d:\question\venv\lib\site-packages (from importlib-metadata>=1.4->pyppeteer) (3.15.0)
Requirement already satisfied: typing-extensions>=3.6.4 in d:\question\venv\lib\site-packages (from importlib-metadata>=1.4->pyppe
Requirement already satisfied: colorama in d:\question\venv\lib\site-packages (from tqdm<5.0.0,>=4.42.1->pyppeteer) (0.4.6)
WARNING: There was an error checking the latest version of pip.

截图如下:

记录一次安装 python 第三方库时的pip version报错WARNING: There was an error checking the latest version of pip._第1张图片

想卸载 pip 重新安装 pip

D:\Program Files\Python37>python -m pip uninstall pip

记录一次安装 python 第三方库时的pip version报错WARNING: There was an error checking the latest version of pip._第2张图片

重新安装

D:\Program Files\Python37>python -m ensurepip --default-pip

再次安装  第三方包 依旧报错如下

记录一次安装 python 第三方库时的pip version报错WARNING: There was an error checking the latest version of pip._第3张图片

然后再次卸载pip ,卸载后我再运行pip 竟然还可以运行pip ,非常奇怪!!!

记录一次安装 python 第三方库时的pip version报错WARNING: There was an error checking the latest version of pip._第4张图片

这个时候就看到了python另一个路径,大概就想到是不是另外一个目录中也安装python编译器且也自带了pip ,然后我切换到对应的目录查看,果然是这样的,然后我进到这个目录上就再次执行 卸载pip命令

D:\question\venv\Scripts>python.exe -m pip uninstall pip

记录一次安装 python 第三方库时的pip version报错WARNING: There was an error checking the latest version of pip._第5张图片

接着再反过来回到之前的那个python目录 重新安装pip成功,且再安装第三方包成功!

pip install pyppeteer

记录一次安装 python 第三方库时的pip version报错WARNING: There was an error checking the latest version of pip._第6张图片

你可能感兴趣的:(python,pip,开发语言)