Skip to content
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

pip install making ConnectionRefusedError: [WinError 10061] #9983

Closed
omrid594 opened this issue May 15, 2021 · 2 comments
Closed

pip install making ConnectionRefusedError: [WinError 10061] #9983

omrid594 opened this issue May 15, 2021 · 2 comments

Comments

@omrid594
Copy link

  • pip version: 9.0.3
  • Python version: 3.6.5
  • Operating system: WINDOWS 10

Trying to install a package but can't and keep getting this error:

pip install facebook-scrapper
Collecting facebook-scrapper
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000248EDD77B00>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/facebook-scrapper/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000248EDD77D68>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/facebook-scrapper/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000248EDD77B38>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/facebook-scrapper/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000248EDD77BA8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/facebook-scrapper/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000248EDD77518>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/facebook-scrapper/
  Could not find a version that satisfies the requirement facebook-scrapper (from versions: )
No matching distribution found for facebook-scrapper
Traceback (most recent call last):
  File "c:\python365\lib\site-packages\pip\_vendor\urllib3\util\connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python365\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python365\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\python365\Scripts\pip.exe\__main__.py", line 9, in <module>
  File "c:\python365\lib\site-packages\pip\__init__.py", line 248, in main
    return command.main(cmd_args)
  File "c:\python365\lib\site-packages\pip\basecommand.py", line 252, in main
    pip_version_check(session)
  File "c:\python365\lib\site-packages\pip\utils\outdated.py", line 126, in pip_version_check
    headers={"Accept": "application/json"},
  File "c:\python365\lib\site-packages\pip\_vendor\requests\sessions.py", line 521, in get
    return self.request('GET', url, **kwargs)
  File "c:\python365\lib\site-packages\pip\download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "c:\python365\lib\site-packages\pip\_vendor\requests\sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "c:\python365\lib\site-packages\pip\_vendor\requests\sessions.py", line 640, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "c:\python365\lib\site-packages\pip\_vendor\requests\sessions.py", line 640, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "c:\python365\lib\site-packages\pip\_vendor\requests\sessions.py", line 218, in resolve_redirects
    **adapter_kwargs
  File "c:\python365\lib\site-packages\pip\_vendor\requests\sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "c:\python365\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 47, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "c:\python365\lib\site-packages\pip\_vendor\requests\adapters.py", line 440, in send
    timeout=timeout
  File "c:\python365\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "c:\python365\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "c:\python365\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "c:\python365\lib\site-packages\pip\_vendor\urllib3\connection.py", line 284, in connect
    conn = self._new_conn()
  File "c:\python365\lib\site-packages\pip\_vendor\urllib3\connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "c:\python365\lib\site-packages\pip\_vendor\urllib3\util\connection.py", line 73, in create_connection
    sock.connect(sa)

Also, can't do pip install --upgrade pip
I tried many things like:

  • disable IPV6
  • delete VPN
    I am out of ideas
    I trying to figure this out for too long - please any help will do!
@Jarmos-san
Copy link

Jarmos-san commented May 17, 2021

It's facebook-scraper not "facebook-scrapper", notice the "p".

Besides, update your pip version with py -m pip install --upgrade pip (for Windows users only).

@DiddiLeija DiddiLeija added the S: awaiting response Waiting for a response/more information label Aug 20, 2021
@no-response
Copy link

no-response bot commented Sep 9, 2021

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Sep 9, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2021
@pradyunsg pradyunsg removed the S: awaiting response Waiting for a response/more information label Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants