1

I have tried to install a few packages such as htmllib, dnspython, tzlocal and stopit but for all of them I can same error:

Download error on https://pypi.python.org/simple/ :[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed. <ssl.c:749> -- some packages may not be found. 

I have searched for the issue but the only solution was talking about adding to trust lists using pip which is not may case. Can anyone help me whats the problem?

Alex
  • 303
  • 1
  • 6
  • 17
  • 1
    Possible duplicate of [pip install fails with "connection error: \[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify failed (\_ssl.c:598)"](http://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi) – ppasler Jan 16 '17 at 18:11
  • 1
    Why do you think that "trust lists using pip" is not your case? – ForceBru Jan 16 '17 at 18:12
  • @ForceBru Because I am getting error using pip for every thing and was thinking to install packages directly – Alex Jan 16 '17 at 18:43
  • I always get this: Could not find a version that satisfies the requirement packagename no matching distribution found for packagename. – Alex Jan 16 '17 at 18:45

1 Answers1

0

Try this:

pip install --trusted-host pypi.python.org pytest-xdist

pip install --trusted-host pypi.python.org --upgrade pip
Daniel
  • 3,541
  • 3
  • 33
  • 46
  • Thanks. I am getting this: Could not find a version that satisfies the requirement pytest-xdist no matching distribution found for pytest-xdist.. and I am getting this one for every thing I tried using pip – Alex Jan 16 '17 at 18:44
  • Please show the command you are using as well the error message. – Steve Hope Jan 16 '17 at 19:34
  • I have used the one you mentioned here: pip install --trusted-host pypi.python.org pytest-xdist – Alex Jan 16 '17 at 19:40
  • Your install, setuptools may need update: On Linux or OS X: pip install -U pip setuptools On Windows: python -m pip install -U pip setuptools – Steve Hope Jan 16 '17 at 19:42