I am running pip install and anything I try to install max retries out. I am on windows 10 and using Anaconda which had pip installed from the onset. I recently ran git clean by accident and messed up my files, this may have something to do with the pip install problem. pip install does work with .whl files so i think the problem lies in the connection but what i have tried so far has yielded little change.
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003763DA0>: Failed to establish a new connection: [Errno 10061] No connection could be made because the target machine actively refused it',)': /simple/pypdf2/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000037639B0>: Failed to establish a new connection: [Errno 10061] No connection could be made because the target machine actively refused it',)': /simple/pypdf2/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003763898>: Failed to establish a new connection: [Errno 10061] No connection could be made because the target machine actively refused it',)': /simple/pypdf2/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000037637F0>: Failed to establish a new connection: [Errno 10061] No connection could be made because the target machine actively refused it',)': /simple/pypdf2/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003763F60>: Failed to establish a new connection: [Errno 10061] No connection could be made because the target machine actively refused it',)': /simple/pypdf2/
Could not find a version that satisfies the requirement PyPDF2 (from versions: )
No matching distribution found for PyPDF2
Thanks in advance, up to this point i have just downloading every package off the internet and that is a real pain, so if this could be fixed that would be great!
Related
I tried to download the pip install PyMySQL on my Anaconda prompt (Im using Spyder as IDE). Its not working. I received this error. Someone who knows how to fix it? Iam using Python version 3.7.4 64-bit. Thank you in advance :)
(base) C:\Users\AK>pip install PyMySQL
Collecting PyMySQL
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 0x000001E5EC2F84C8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
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 0x000001E5EC30CC48>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
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 0x000001E5EC319408>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
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 0x000001E5EC319908>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
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 0x000001E5EC319B88>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
ERROR: Could not find a version that satisfies the requirement PyMySQL (from versions: none)
ERROR: No matching distribution found for PyMySQL
This could be due to an antivirus or some other program on your computer interfering with network connections (see pip install is not working).
I am able to install PyMySQL with the following:
pip install PyMySQL
There are a few possible solutions.
Install with conda: conda install pymysql
Download the wheel for PyMySQL and install it using that file.
Go to https://pypi.org/project/PyMySQL/#files and download the .whl file.
Run pip install path/to/PyMySQL-0.9.3-py2.py3-none-any.whl
If antivirus is in fact playing a role, then I'm not sure what to do, but google is your friend.
I cant install any packages through pip it shows me error:-
PS
C:\WINDOWS\system32> pip install virtualenv
Collecting virtualenv
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0423C5D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))': /simple/virtualenv/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0423C3B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))': /simple/virtualenv/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0423C290>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))': /simple/virtualenv/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0423C090>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))': /simple/virtualenv/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0423C7F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))': /simple/virtualenv/
Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv
This type of Error occurs while updating the pip.
But can be resolved by using following commands.
step 1:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
step 2:
python3 get-pip.p --force-reinstall
step 3:
Now check the pip version:
pip3 --version
This can happen with older versions of pip. Try to upgrade it with pip install --upgrade pip
I am trying to install virtualenv and django and i keep getting errors.I tried using the whql file of virtualenv but still, no solution.My windows firewall is also turned off.This is the error message for virtualenv,The same thing happens when i try installing flask also.
C:\Windows\system32>easy_install virtualenv
Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Download error on https://pypi.python.org/simple/virtualenv/: [WinError 10061] N
o connection could be made because the target machine actively refused it -- Som
e packages may not be found!
Couldn't find index page for 'virtualenv' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [WinError 10061] No connectio
n could be made because the target machine actively refused it -- Some packages
may not be found!
No local packages or working download links found for virtualenv
error: Could not find suitable distribution for Requirement.parse('virtualenv')
C:\Windows\system32>pip install virtualenv
Collecting virtualenv
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DD70>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/virt
ualenv/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DED0>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/virt
ualenv/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DDD0>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/virt
ualenv/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DB30>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/virt
ualenv/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DC90>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/virt
ualenv/
Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv
This is the error message for Django.
C:\Windows\system32>pip install django
Collecting django
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DE90>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/djan
go/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DE30>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/djan
go/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DD50>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/djan
go/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DDB0>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/djan
go/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DC10>: Failed to establish a new connection: [WinError 10061] No connection
could be made because the target machine actively refused it',))': /simple/djan
go/
Could not find a version that satisfies the requirement django (from versions:
)
No matching distribution found for django
C:\Windows\system32>easy_install django
Searching for django
Reading https://pypi.python.org/simple/django/
Download error on https://pypi.python.org/simple/django/: [WinError 10061] No co
nnection could be made because the target machine actively refused it -- Some pa
ckages may not be found!
Couldn't find index page for 'django' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [WinError 10061] No connectio
n could be made because the target machine actively refused it -- Some packages
may not be found!
No local packages or working download links found for django
error: Could not find suitable distribution for Requirement.parse('django')
C:\Windows\system32>
I would probably tackle this with pip. I would do the following:
pip install virtualenv
Then next in your directory you choose to set up your virtual environment. Then nexxt name your virtual enviornment:
virtualenv pymote_env
Then after we do that we can call the virtual enviornment as so:
pymote_env\Scripts\activate(pymote_env)
Then when the virtual environment call the pip command to verify it works
pip
Then after install django:
pip install django
Hopefully this is what your looking for. H
I tried to install Flask as well as virtualenv using pip command in windows command prompt but below error is showing. How can I fix this?
C:\Users\anupa>pip install Flask
Collecting Flask
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620E50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620DF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620C30>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620E10>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620C90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Could not find a version that satisfies the requirement Flask (from versions: )
No matching distribution found for Flask
Try using the pip command,
$ pip install --proxy your_proxy_path Flask
I want to install xmltodict module on my existing python 3.6.3 on Windows 7 machine. I tried the below steps but getting error. Please help me.
Python version:
C:\Users\MaS>pythona
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)]
on win32
Tried the below steps:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\MaS\AppData\Local\Programs\Python\Python36-32\Scripts>pip.exe install xmltodict
Collecting xmltodict
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError '<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACD30>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACF70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACE70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACDB0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACBB0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/ Could not find a version that satisfies the requirement xmltodict (from versions: )
No matching distribution found for xmltodict
C:\Users\MaS\AppData\Local\Programs\Python\Python36-32\Scripts>pip3.6.exe
install xmltodict
Collecting xmltodict
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACCF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACDF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACFD0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACF50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACE90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Could not find a version that satisfies the requirement xmltodict (from versions: )
No matching distribution found for xmltodict
C:\Users\MaS\AppData\Local\Programs\Python\Python36-32\Scripts>pip3.exe in
stall xmltodict
Collecting xmltodict
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACED0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACF70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACF30>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACE70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACD70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
Could not find a version that satisfies the requirement xmltodict (from versions: )
No matching distribution found for xmltodict
C:\Users\MaS\AppData\Local\Programs\Python\Python36-32\Scripts>
First of all 'Many Thanks' to Idlehands (who commented on my post). Combining his two comments the problem is solved.
Steps I took:
Step-1: Downloaded the file 'xmltodict-0.11.0-py2.py3-none-any.whl (md5)' from https://pypi.python.org/pypi/xmltodict#downloads as mentioned by Idlehands.
Step-2: Launched a command prompt in Admin privileged (I am not sure if it works without Admin or not)
Step-3: Go to the location where the file (in step-1) is located.
Step-4: Run the pip install command.
Please see below:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cd C:\Users\MaS\Downloads
C:\Users\MaS\Downloads>pip install xmltodict-0.11.0-py2.py3-none-any.whl
Processing c:\users\MaS\downloads\xmltodict-0.11.0-py2.py3-none-any.whl
Installing collected packages: xmltodict
Successfully installed xmltodict-0.11.0
C:\Users\MaS\Downloads>