Cannot install PyAutoGUI - receiving error - python

Can anyone help me on this? When I try to install PyAutoGUI, I am getting the following error:
C:\Python 34>pip.exe install pyautogui
Collecting pyautogui
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BB69B0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BB6B70>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BB6C30>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BB6CF0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BB6DB0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BB6E50>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BD3130>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BD31F0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BD32B0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03BD3370>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pyautogui/
Could not find a version that satisfies the requirement pyautogui (from versions: )
No matching distribution found for pyautogui
Much appreciated. Thank You!

Download the package from here PyPI.PyAutoGUI. Browse to the folder where the file has been downloaded and open Command Prompt over there.
Type the command : pip install "PyAutoGUI-0.9.50.tar.gz" (Check the file name in case it changes with future releases of mentioned package.)

This isn't a problem with PyAutoGUI, but rather this is pip's behavior when it can't connect to the internet properly. Check your network, firewalls, proxies, and so on.

Related

Cannot install numpy with Python 3.8 "Could not find a version that satisfies the requirement numpy"

I tried EVERYTHING I've seen from similar questions on stack overflow and nothing seems to work... It may matter that I'm on a secure work computer, connected to a secured network, but I don't know if that has to do with anything.
I've added to "...Python\Python38\Scripts" and "...Python\Python38" to "Path" (among others) in my computer's Environment Variables (Start -> "Edit Environment Variables").
Here is what's entered on command line, just "pip install numpy":
C:\Users\bs>pip install numpy
Collecting numpy
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip. vendor.urllib3.connection. VerifiedHTTPSConnection object at Ox00000290E22FF550>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/numpy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None) after connection broken by 'ConnectTimeoutError(pip. vendor.ur11ib3.connection. VerifiedHTTPSConnection object at #x00000290E22FF040>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/numpy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection. VerifiedHTTPSConnection object at Ox00000290E22FF6A0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/numpy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection. VerifiedHTTPSConnection object at Ox00000290E22FF820>, "Connection to pypi.org timed out. (connect timeout=15)')': /simple/numpy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip. vendor.urllib3.connection. VerifiedHTTPSConnection object at Ox00000290E22FF9A0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/numpy/
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy

How can I install a python package to google Colab from a private Pypi repository?

My company has developed python packages and hosted them on a private Pypi repository. I wish to install these packages on a Google Colab notebook.
If they were on a public Pypi repository this would work:
!pip3 install --index-url=https://pypi.spotify.net/spotify/production confidence
however, it causes this error:
Looking in indexes: https://pypi.spotify.net/spotify/production
Collecting confidence
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0f9e601748>, 'Connection to pypi.spotify.net timed out. (connect timeout=15)')': /spotify/production/confidence/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0f9e601588>, 'Connection to pypi.spotify.net timed out. (connect timeout=15)')': /spotify/production/confidence/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0f9e6015f8>, 'Connection to pypi.spotify.net timed out. (connect timeout=15)')': /spotify/production/confidence/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0f9e601390>, 'Connection to pypi.spotify.net timed out. (connect timeout=15)')': /spotify/production/confidence/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0f9e6012e8>, 'Connection to pypi.spotify.net timed out. (connect timeout=15)')': /spotify/production/confidence/
ERROR: Could not find a version that satisfies the requirement confidence (from versions: none)
ERROR: No matching distribution found for confidence
I suspect this is due to google Colab being a hosted notebook. This means that it is not connecting to Pypi via my work wifi, but from a google server.
You need to either:
make the package repository available to the public internet (unlikely that you'll actually want to do this)
connect Colaboratory to a local runtime: https://research.google.com/colaboratory/local-runtimes.html

Unable to install Robot framework with python 2.7.15

i installed Eclipse 2018-09 and python 2.7.15
then i tried to install robot framework with python using command pip install robotframwork
it returns:
Microsoft Windows [version 10.0.17134.1006]
(c) Microsoft Corporation, 2018. Tous droits réservés.
C:\WINDOWS\system32>python --version
Python 2.7.15
C:\WINDOWS\system32>pip install robotframework
Collecting robotframework
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044D0A90>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/robotframework/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044D0940>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/robotframework/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044D0C50>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/robotframework/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044D0FD0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/robotframework/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000044D06D8>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/robotframework/
Could not find a version that satisfies the requirement robotframework (from versions: )
No matching distribution found for robotframework
C:\WINDOWS\system32>

Python pip: Can't install matplotlib (ConnectTimeoutError)

Running the following command:
pip install matplotlib --disable-pip-version-check
Gives the following output:
Collecting matplotlib
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9D0F0>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9DE70>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9D890>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9D8D0>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x02D9DD90>, 'Connection to pypi.python.
org timed out. (connect timeout=15)')': /simple/matplotlib/
Could not find a version that satisfies the requirement matplotlib (from versions: )
No matching distribution found for matplotlib
Check your Internet connection.
It seems that the Internet is unreachable for you. Less likely, PyPi is experiencing temporary problems and you should try connecting later.
Very simple methods step by step:-
Download matplotlib(.whl) from http://www.lfd.uci.edu/~gohlke/pythonlibs/
matplotlib also Requires numpy, dateutil, pytz, pyparsing, cycler, setuptools
process:
open>python27>>Scripts>copy and paste matplotlib.whlfile
open cmd on python27>Scripts>pip install matplotlib-1.5.1-cp27-none win_amd64.whl
I think this is the simplest install method.
Just try it if you face again same problem then ping me.
Another possible solution - I found an executable installer here
Didn't find it with Google before.
Try ignoring the cache:
pip install matplotlib --no-cache
No idea how this works, because when it said ConnectionTimeoutError, I assumed that it was not using the cache. If this works for anyone, I'd love to hear an explanation.

pip in virtualenv gets ConnectTimeoutError

I'm current attempting to install packages in a python-3.4 virtualenv and I keep getting these Retry/TimeoutErrors.
(backend)root#XXXX:/var/virtualenvs# pip3 install -r backend-freeze.txt
Collecting cassandra-driver==2.7.2 (from -r backend-freeze.txt (line 1))
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4d7faf94a8>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/cassandra-driver/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4d7faf9588>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/cassandra-driver/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4d7faf9668>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/cassandra-driver/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4d7faf9748>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/cassandra-driver/
Not sure what's going on here. I'm not using a proxy (which seems to be the case for others who have stated their experience with similar/same error).
So, I discovered the issue. I'm not sure how this happened, but someone put a DROP all anywhere/anywhere iptables line in the INPUT chain.
I promise it wasn't me, but removing that line definitely resolved the issue. Now to figure out which employee thought that'd be a great idea.

Categories

Resources