Error in installing pip in python 2.7.6 - python-2.7

Tried to install pip in python 2.7.6 in windows 7 by downloading get-pip.py and running by python get-pip.py .but getting timeout error
Collecting pip
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x034F5DB0>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x034F5E50>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x034F5F30>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x034F5FD0>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x034F5970>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/pip/

The problem is, it checks the network for the update version. You can disable it with --disable-pip-version-check, then it should not use the retry mechanism.
use:
PIP_DISABLE_PIP_VERSION_CHECK=1
It should work.

Follow these steps:
Find pyvisa download it.
Paste it in your python interpreter folder and place it in scripts folder.
Open command prompt from scripts folder by pressing and holding on shift key and right clicking.
once you open command prompt type pip install pyp and hit tab it will give the path.
Finally enter to execute.

Related

Connecting to my bigquery datasets using jupyter notebook on GCP ( VM )

I try to visualize my bigquery data in a jupyter notebook, I follow the steps described in the following link :https://cloud.google.com/bigquery/docs/visualize-jupyter
the problem is that when I execute the command:
pip install --upgrade google-cloud-bigquery[pandas]
the result is the following :
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa83e0f2ba8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/google-cloud-bigquery/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa83e0f2d68>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/google-cloud-bigquery/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa83e0f21d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/google-cloud-bigquery/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa83e0f2f28>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/google-cloud-bigquery/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa83e0f2e80>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/google-cloud-bigquery/<br/>
ERROR: Could not find a version that satisfies the requirement google.cloud.bigquery (from versions: none)<br/>
ERROR: No matching distribution found for google.cloud.bigquery

Six error while installing utils package on python 2.7 windows XP 32bit [duplicate]

On my cmd window, I typed
pip install pdfminer.six
and it gives me these errors.
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Eric Kim>pip install pdfminer.six
Collecting pdfminer.six
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x04435730>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x04435870>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x04435410>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x044355D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x04435150>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Could not find a version that satisfies the requirement pdfminer.six (from versions: )
No matching distribution found for pdfminer.six
I use Python 3.6 on Windows 10. What should I do? Is there any way that I can install this package without using pip? I want to use this link: https://pypi.python.org/pypi/pdfminer.six/20170720
I'm pretty new to programming, so I don't know much.
This is a proxy problem, as the retry-error-message tells you. Your pip does not connect to the internet through the proxy.
Try pip --proxy url:port pdfminer.six with url:port beeing your proxy, e.g. proxy.example.com:8080.
If this is not working, try using another internet connection without a proxy to install packages via pip, or have a look at this thread, which has more answers regarding pip and proxy.

Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django [duplicate]

This question already has answers here:
PIP not working - proxy
(2 answers)
Closed 4 years ago.
I was able to install django once in a virtual enviroment. Now whenever i try to install it with
pip install django==2.07
it returns:
Cache entry deserialization failed, entry ignored
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
Could not find a version that satisfies the requirement django==2.0.7 (from versions: )
No matching distribution found for django==2.0.7
Also I have:
pip- 10.0.1
virtualenv- 16.0.0
This is killing me. I believe it has something to do with pip. I am a beginner so walk me through. Thanks!
Django above 2 version support only python3 , so try
pip3 install django==2.0.7
if you have python3.5 and above in your system
Also to see supported versions by pip try:
pip install django==0
and
pip3 install django==0

Conda update is too much time on Centos

Conda is taking too much time on CentOS. I m running the command conda --debug update conda. Here is the log not sure why it's taking too much time.
DEBUG:conda.fetch:channel_urls=OrderedDict([('https://repo.continuum.io/pkgs/free/linux-64/', ('defaults', 1)), ('https://repo.continuum.io/pkgs/free/noarch/', ('defaults', 1)), ('https://repo.continuum.io/pkgs/pro/linux-64/', ('defaults', 1)), ('https://repo.continuum.io/pkgs/pro/noarch/', ('defaults', 1))])
Fetching package metadata ...INFO:stdoutlog:Fetching package metadata ...
DEBUG:requests.packages.urllib3.util.retry:Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None)
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): repo.continuum.io
DEBUG:requests.packages.urllib3.util.retry:Incremented Retry for (url='/pkgs/free/linux-64/repodata.json.bz2'): Retry(total=2, connect=None, read=None, redirect=None)
WARNING:requests.packages.urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f625c420d10>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /pkgs/free/linux-64/repodata.json.bz2
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (2): repo.continuum.io
DEBUG:requests.packages.urllib3.util.retry:Incremented Retry for (url='/pkgs/free/linux-64/repodata.json.bz2'): Retry(total=1, connect=None, read=None, redirect=None)
WARNING:requests.packages.urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f625c420e90>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /pkgs/free/linux-64/repodata.json.bz2
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (3): repo.continuum.io
DEBUG:requests.packages.urllib3.util.retry:Incremented Retry for (url='/pkgs/free/linux-64/repodata.json.bz2'): Retry(total=0, connect=None, read=None, redirect=None)
WARNING:requests.packages.urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f625dc08050>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /pkgs/free/linux-64/repodata.json.bz2
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (4): repo.continuum.io
Did this problem resolve itself for you? The problem, as the debug output shows, is that you were unable to access https://repo.continuum.io/pkgs/free/linux-64/repodata.json.bz2 -- this is only a 300KB file. But the issue was not download time, it was that your client simply couldn't get a response from that URL. I work at Continuum and I am not aware of any service disruption that would have meant repo.continuum.io was not available any time in the past 24 hours, however I am not part of the ops team. I would put that URL into your web browser or phone and see if it resolves OK for you. If it does then the problem is more likely on the CentOS server where you are executing the conda update command. You can always try a wget or curl command to see if those resolve the URL successfully. Let us know if those suggestions help you get it working or at least identify the source of the problem better.
By the looks of this, the issue is not the download taking too much time, but you are unable to get a response from the URL. The most likely cause is because you have a firewall configured incorrectly, as Ian recommended see if you can resolve the URL through a different measure, potentially even through a different machine/VM.

AWS - Install EB CLI on Windows

I am trying to install the elastic beanstalk CLI on an EC2 instance (running AMI) I am installing EB CLI on Windows,
C:\windows\system32>pip install awsebcli
Collecting awsebcli
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(1006
1, 'No connection could be made because the target machine actively refused it',
None, 10061, None))': /simple/awsebcli/
Could not find any downloads that satisfy the requirement awsebcli
No distributions at all found for awsebcli
But I can't. I guess Its a proxy problem bit I don't know how to solve it