-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] There was an error checking the latest version of pip #11155
Comments
|
Hi @J8923, thank you very much for reporting this. I have a few doubts, maybe you have an answer for some of them?
|
python -m pip install --upgrade pip |
Worked |
The cause of the warning is a bug in pip. It should be fixed by #11136 |
This eliminated the problem for me. Amazing. |
Hi @J8923, I tried to replicate the problem, however I cannot simply install different versions of Python in the Windows machine I have available, so I resorted to using a Windows container. The following script show the sequence of commands I have used trying to replicate the error you reported: > docker run --rm -it -u ContainerAdministrator mcr.microsoft.com/powershell:lts-nanoserver-1809
# Windows containers require a Windows host correctly configured.
# The container tag version (e.g. 1809) depends on the version of the host and may require changes,
# please check https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/version-compatibility
netsh interface ip add dnsservers name="Ethernet" address=8.8.8.8 index=4
# A DNS is required for downloading content from the internet.
# Please make sure `name` matches the correct adapter (a list can be found using `ipconfig /all`).
Register-PackageSource -Name nuget.org -ProviderName NuGet -Location "https://api.nuget.org/v3/index.json" -Trusted
Install-Package python -MinimumVersion 3.8.10 -MaximumVersion 3.8.10
$env:Path += ";" + (Join-Path (Split-Path (Get-Package python | % source)) "tools") + ";"
python -m pip list
# No 'error checking the latest version of pip' warning
python -m pip install -U 'setuptools==62.3.2'
python -m pip list
# No 'error checking the latest version of pip' warning
python -m pip install -U 'pip==22.1.1'
python -m pip list
# No 'error checking the latest version of pip' warning The error does not seems to show up. |
pip version 21.1 was throwing the following message: `WARNING: There was an error checking the latest version of pip` See: https://github.com/pypa/setuptools/issues/3333#issuecomment-1138425963
which should be fixed by pypa/pip#11136
Hi @abravalheri , I've also encountered this issue a few weeks ago after installing a requirement.txt. I'm not sure if this issue was caused by that directly, and unfortunately, I didn't keep a copy of that. But perhaps you can try some requirement texts. |
I'm moving this to pip's issue tracker, since that's where it belongs. |
And, closing since #11136 has been merged, which fixes this. |
In my case |
This is fixed in pip 21.1.2. 21.1 and 21.1.1 are both affected by this bug. |
➜ iOS Projects: python -m pip install --upgrade pip What am I doing wrong? |
setuptools version
62.3.2
Python version
Python 3.8.10
OS
Windows 10
Additional environment information
No response
Description
Update the pip 22.1.1 and setuptools 62.3.2
Expected behavior
No warning message
How to Reproduce
Output
D:\python -m pip list
Package Version
nidaqmx 0.6.2
numpy 1.22.4
pip 22.1.1
PyAudio 0.2.11
pyserial 3.5
PyVISA 1.11.3
pywin32 304
pywinusb 0.4.2
scipy 1.8.0
setuptools 62.3.2
six 1.16.0
typing_extensions 4.2.0
wheel 0.37.1
WARNING: There was an error checking the latest version of pip.
The text was updated successfully, but these errors were encountered: