Problems with Pip install to install Virtualenvwrapper on Windows

Asked

Viewed 2,731 times

1

I’m trying to install the virtualenvwrapper to then install Django. For that, I installed the pip, but every time I try to run on CMD:

pip install virtualenvwrapper-win

Error appears:

Could not find a version that satisfies the requirement virtualenvwrapper-win

I’m using version 3.6 of Python, Pip 10.0 and Windows.

  • The pip is managing to install other packages?

  • Appears some certificate error, could put the whole error message please.

  • 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.

  • 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.

  • Mariana out the error you quoted appears some more error?

  • No, it’s always the same mistake.

  • Now little was trying to follow the instructions of this site, although without success: https://www.codingforentrepreneurs.com/blog/install-python-django-on-windows/

  • 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?

  • Aparece Collecting virtualenv

  • 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.

Show 6 more comments

3 answers

1


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:

instalação

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.

  • 1

    Very complete and well explained answer. Although it has not solved for me, it will surely solve for someone with the same problem. :)

  • @Marianaferreira does not need to mark as accepted yet, please let’s try to see what your problem is? If you have some time on Sunday afternoon we can chat and do the tests ;)

  • So, the problem happens here on the computer where I work and Sunday I’m not working. But I can try to install in my notebook on Sunday and see if it happens the same. But since the problem is network, I don’t know if it helps much. :/

  • @Marianaferreira has proxy in his work? Another possibility is some firewall, on the machine or network

  • I saw by the settings here that has proxy yes, I tried to configure but it did not work, I went to the DTI but they are not very willing to help me.

  • @Marianaferreira I think I can help you, I just need to finish some things and I’ll call you in the chat room

  • Ah, right. Thank you so much.

  • You won’t need it anymore. I’ll have to use another language for my system. Company rules don’t allow me to use Django by proxy release.

Show 3 more comments

-2

Try:

pip install virtualenv

Worked here

  • Are you sure https://pypi.python.org/pypi/virtualenvwrapper-win ?

  • Just for the record, i did not install Virtualenv on my machine and managed to install Wrapper quietly: https://i.stack.Imgur.com/lAq7t.png, so the problem is not a lack of dependencies but something else..

  • So you made the same mistake.

  • 1

    The problem isn’t in the package, so that doesn’t answer the question.

-2

  • Are you sure https://pypi.python.org/pypi/virtualenvwrapper-win ?

  • By the need he describes, only virtualenv is what he needs.

  • virtualenvwrapper is a wrapper for window. But I only mentioned it because it might be a problem with.txt or IPV6.

  • Exactly. What I understand is that he needs virtualenv, but must have searched in Google how to install and ended up finding the wrapper.

  • You don’t understand, it may well be virtualenv’s lack as dependency, but this error is eventually common with other packages, usually caused by other failures, it is quite possible that virtualenvwrapper needs virtualenv to run, but I don’t know if it is necessary to install, after all he is only a "facilitator", but I won’t even go into detail, let’s wait.

  • Just for the record, i did not install Virtualenv on my machine and managed to install Wrapper quietly: https://i.stack.Imgur.com/lAq7t.png, so the problem is not a lack of dependencies but something else..

  • Made the same mistake.

  • Try to download the file virtualenv. Then go to the folder you downloaded and use the pip install nome_do_arquivo.

  • 1

    The problem isn’t in the package, so that doesn’t answer the question.

Show 4 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.