Pip: Could not fetch : There was a problem confirming the ssl certificate(SSL.c:3566)

Created on 12 Mar 2018  Â·  8Comments  Â·  Source: pypa/pip

  • Pip version: 9.0.1
  • Python version: 3.6.4
  • Operating system: windows 10 Enterprise

Description: Trying to Install Azure Cli 2 in my windows 10 system.

Error Des:

Could not fetch URL https://pypi.python.org/simple/azure-cli/: There was a problem confirming the ssl certificate: unknown error (_ssl.c:3566) - skipping
Could not find a version that satisfies the requirement azure-cli (from versions: )
No matching distribution found for azure-cli.

What I've run: pip install --user azure-cli

windows auto-locked support

Most helpful comment

Hi @sai306!

Are you working behind a proxy?

All 8 comments

Hi @sai306!

Are you working behind a proxy?

Yes. I am working in a corporate environment.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Pradyun Gedam notifications@github.com
Sent: Tuesday, March 13, 2018 1:20:43 AM
To: pypa/pip
Cc: sai306; Mention
Subject: Re: [pypa/pip] Could not fetch : There was a problem confirming the ssl certificate(SSL.c:3566) (#5063)

Hi @sai306https://github.com/sai306!

Are you working behind a proxy?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/pypa/pip/issues/5063#issuecomment-372550364, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ajkockj3ZyA32sW6FssfM78qPHg2PEbbks5td1cqgaJpZM4Smu-a.

@sai306 You can workaround this by using --trusted-host="pypi.python.org"

Your proxy seems to be making it difficult for pip to validate the SSL certificates.

You should be able to workaround this by trusting the host machines for pypi.org, files.pythonhosted.org and pypi.python.org; albeit that's not the most secure solution.

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org ...

Closing since I don't see anything actionable here for pip. :)

I solved it just now ! what we have to do is to add --trusted-host ! For instance:

python -m pip install --upgrade pip --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

Hope it will be helpful !

The trusted host workaround does not work anymore because pip has disabled non-ssl connections.

"--trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org"

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imzi picture imzi  Â·  3Comments

ncoghlan picture ncoghlan  Â·  3Comments

dstufft picture dstufft  Â·  3Comments

GregBorrelly picture GregBorrelly  Â·  3Comments

cjolowicz picture cjolowicz  Â·  3Comments