Like I said, there’s no point in people kicking answers, this error is generic, can be anything and usually is no problem with the package (unless the package does not exist), this is not solved by manually downloading the package and installing from the local machine, see that I was able to install normally the virtualenvwrapper
the package is correct:
It has nothing to do with wrong package as said in the other answer, trying to install the pip install virtualenv
won’t work, it’s not dependencies problem.
The solution is to resolve the network, proxy or SSL problem (whatever).
Like I said, that mistake is generic and it could be anything, so the ideal path is to look at the logs and details to be sure, as I requested for Mariana, the detailed error is this:
C:\Users\u516709>pip install virtualenv
Collecting virtualenv
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.
urllib3.connection.VerifiedHTTPSConnection object at 0x0380FC50>: Failed to esta
blish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/virtualenv
/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None))
after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.
urllib3.connection.VerifiedHTTPSConnection object at 0x0380FC90>: Failed to esta
blish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/virtualenv
/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None))
after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.
urllib3.connection.VerifiedHTTPSConnection object at 0x0380FA50>: Failed to esta
blish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/virtualenv
/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))
after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.
urllib3.connection.VerifiedHTTPSConnection object at 0x0380FC30>: Failed to esta
blish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/virtualenv
/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None))
after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.
urllib3.connection.VerifiedHTTPSConnection object at 0x037FF930>: Failed to esta
blish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/virtualenv
/
Could not find a version that satisfies the requirement virtualenv (from versi
ons: )
No matching distribution found for virtualenv
Right in the message:
'NewConnectionError('<pip._vendor.requests.packages.
urllib3.connection.VerifiedHTTPSConnection object at 0x0380FC50>: Failed to esta
blish a new connection: [Errno 11004] getaddrinfo failed'
You can already see that the mistake is with:
- The network outside the computer is blocked or using some proxy (as said outside the computer) and only the network administrator can resolve
- Network is in some conflict with IPV6
- Missing SSL certificates (unlikely)
If you are using HTTP proxy
If the network you use has some proxy blocking, which is common in companies, you will need to configure proxy authentication, for this you will have to request with the administrator the authentication data (usually the computer already has this data in the Network/Internet Explorer options).
Then with the proxy authentication data you can configure in the environment variables the authentication of the proxy with the variable http_proxy
in the "Environment variables":
http_proxy=http://userid:[email protected]:port
and HTTPS:
https_proxy=http://userid:[email protected]:port
To add in the "Environment variables" follow the step by step:
- Right-click on My Computer (or Compute)
- Go on Properties
- Advanced system settings / System properties
- Click the button at the end of the window called "Environment variables"
- Two fields will appear select the bottom where the "label" also says "Environment variables"
- Click the button
Novo...
and add the variable http_proxy
with the value of your proxy http://userid:[email protected]:port
- Do the same again but add the proxy to HTTPS
https_proxy
(I don’t know if it’s the same, it depends on your company’s network)
Just for the record, depending on the proxy may not support HTTPS, then you will need to contact the network administrator.
The
pip
is managing to install other packages?– Guilherme Nascimento
Appears some certificate error, could put the whole error message please.
– Guilherme Nascimento
So, everything I tried to install with Pip did not install, however, when type Pip in cmd appears the list of commands, which means it is working.
– Mariana Bayonetta
So if nothing installs can be problem in Resemblance.txt or IPV6 or SSL certificates of your Windows, I will try to formulate a response, maybe I can help.
– Guilherme Nascimento
Mariana out the error you quoted appears some more error?
– Guilherme Nascimento
No, it’s always the same mistake.
– Mariana Bayonetta
Now little was trying to follow the instructions of this site, although without success: https://www.codingforentrepreneurs.com/blog/install-python-django-on-windows/
– Mariana Bayonetta
I did not mean different error on different occasion, I ask if details appear below or above the error in the CMD, usually after the sentence
<from versions:>
. Are you sure there’s nothing else?– Guilherme Nascimento
Aparece Collecting virtualenv
– Mariana Bayonetta
It is not a problem with Django, I have already mentioned the possible problems, this link does not help anything, the problem may be something totally unrelated to PIP and Python, if it was in the certainty that it was in Django or virtualenv I would not have talked about the other possibilities. Do you understand? That’s why I need details.
– Guilherme Nascimento
Let’s go continue this discussion in chat.
– Mariana Bayonetta