P
P
Petrobah2015-09-28 17:12:25
Python
Petrobah, 2015-09-28 17:12:25

Python (3.4.3) pip on win7 can't connect, why?

> pip3 search django
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(10057, 'Request to send or receive data ( when sending on a datagram socket using a sendto call) no address was supplied', None, 10057, None))': /
pypi Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(10057, 'Request to send or receive data (when sending on a datagram socket using a sendto call) no address was supplied', None, 10057, None))': /pypi
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(10057, 'Request to send or receive data (when sending on a datagram socket using a sendto call) no address was supplied', None, 10057, None))': /
pypi Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by ' ProtocolError('Connection aborted.', OSError(10057, 'Request to send or receive data (when sending on a datagram socket using a sendto call) no address was supplied', None, 10057, None))': /pypi
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(10057, 'Request to send or receive data (when sending on a datagram socket using a sendto call) no address was supplied', None, 10057, None))': /pypi
Exception:
Traceback (most recent call last):
File "C:\Python\34\lib\site-packages\pip \_vendor\requests\packages\urllib3\connectionpool.py", line 518, in urlopen
body=body, headers=headers)
File "C:\Python\34\lib\site-packages\pip\_vendor\requests\packages\ urllib3\connectionpool.py", line 322, in _make_request
self._validate_conn(conn)
File "C:\Python\34\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 727, in _validate_conn
conn.connect()
File "C:\Python\34\lib \site-packages\pip\_vendor\requests\packages\urllib3\connection.py", line 204, in connect
conn = self._new_conn()
File "C:\Python\34\lib\site-packages\pip\_vendor \requests\packages\urllib3\connection.py", line 134, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "C:\Python\34\lib\site-packages\ pip\_vendor\requests\packages\urllib3\util\connection.py", line 87, in create_connection
raise err
File "C:\Python\34\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\connection.py", line 78, in create_connection
sock.connect(sa)
OSError: [WinError 10057] Request to send or receive data (when sending on a datagram socket using a sendto call) no address was supplied
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\34\lib \site-packages\pip\_vendor\requests\adapters.py", line 370, in send
timeout=timeout
File "C:\Python\34\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool .py", line 584, in urlopen
release_conn=release_conn, **response_kw)
File "C:\Python\34\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 584, in urlopen
release_conn=release_conn, **response_kw)
File "C:\Python\ 34\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 584, in urlopen
release_conn=release_conn, **response_kw)
File "C:\Python\34\lib\site-packages \pip\_vendor\requests\packages\urllib3\connectionpool.py", line 584, in urlopen
release_conn=release_conn, **response_kw)
File "C:\Python\34\lib\site-packages\pip\_vendor\requests\ packages\urllib3\connectionpool.py", line 584, in urlopen
release_conn=release_conn, **response_kw)
File "C:\Python\34\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 564, in urlopen
_pool=self, _stacktrace=stacktrace)
File "C:\Python\ 34\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\retry.py", line 271, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
pip._vendor.requests. packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /pypi (Caused by ProtocolError('Connection aborted.', OSError(10057, 'Request to send or receive data (when sending on a datagram socket using a sendto call) no address was supplied', None, 10057, None)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\34\lib\site-packages\pip\basecommand.py", line 232, in main
status = self. run(options, args)
File "C:\Python\34\lib\site-packages\pip\commands\search.py", line 43, in run
pypi_hits = self.search(query, options)
File "C:\ Python\34\lib\site-packages\pip\commands\search.py", line 60, in search
hits = pypi.search({'name': query, 'summary': query}, 'or')
File" C:\Python\34\lib\xmlrpc\client.py", line 1098, in __call__
return self.__send(self.__name, args)
File "C:\Python\34\lib\xmlrpc\client.py", line 1437, in __request
verbose=self.__verbose
File "C:\Python\34\lib\site-packages\pip\download.py", line 740, in request
headers=headers, stream=True)
File "C:\Python\34\lib \site-packages\pip\_vendor\requests\sessions.py", line 504, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "C:\Python \34\lib\site-packages\pip\download.py", line 365, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "C:\Python\34 \lib\site-packages\pip\_vendor\requests\sessions.py", line 461, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python\34\lib\site-packages\ pip\_vendor\requests\sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "C:\Python\34\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 43, in send
resp = super(CacheControlAdapter, self ).send(request, **kw)
File "C:\Python\34\lib\site-packages\pip\_vendor\requests\adapters.py", line 424, in send
raise ConnectionError(e, request=request)
pip._vendor.requests.exceptions.ConnectionError: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /pypi (Caused by ProtocolError('Connection aborted.', OSError(10057, 'Request to send or receive data (when sending on a datagram socket using a sendto call) no address was supplied', None, 10057, None)))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Petr Kashyapov, 2015-10-07
@kashyapov

Try reinstalling pip
for this download bootstrap.pypa.io/get-pip.py
and run
python get-pip.py
instruction
pip.pypa.io/en/latest/installing.html

R
Rinat Zakiryanov, 2017-06-15
@Rinz

Install MinGW -> this is the C compiler required for Python, if already installed then create another venv and check there, it is quite possible that some kind of conflict has occurred.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question