Skip to content

No connection could be made because the target machine actively refused it #10713

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

Closed
1 task done
amorenojr opened this issue Dec 7, 2021 · 1 comment
Closed
1 task done
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@amorenojr
Copy link

Description

I am trying to upgrade PIP and install new packages, however, every time I try, I get this message and all the installs fail. Please help.

WARNING: Retrying (Retry(total=n, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000023F8B9628F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/numpy/

Expected behavior

Successful installation of new package

pip version

21.3.1

Python version

3.7 and 3.10 64-bit

OS

Windows 10 64-bit

How to Reproduce

pip install (output example shows attempt to install 'numpy')

Output

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001E9C35328F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/numpy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001E9C3532770>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/numpy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001E9C3532350>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/numpy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001E9C3533370>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/numpy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001E9C3533580>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/numpy/
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy

Code of Conduct

@amorenojr amorenojr added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Dec 7, 2021
@ichard26
Copy link
Member

SSL issues are usually the result of enterprise firewalls, proxy misconfiguration or other environment issues (ie. it's not pip's fault). Given the lack of any follow up in ~2 years, this issue can safely be closed.

If anyone lands on this issue from a web search: you will probably be better served by reaching out to peers or help forums, such as Python Discuss help category, /r/learnpython on reddit, Python Discord's #python-help channel, #python on Libera.chat (IRC), python-list or python-tutor mailing lists, or StackOverflow.

@pfmoore pfmoore closed this as completed Apr 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants