Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sai306 opened this issue Mar 12, 2018 · 8 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation OS: windows Windows specific type: support User Support

Comments

@sai306
Copy link

sai306 commented Mar 12, 2018

  • 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

@pradyunsg pradyunsg added OS: windows Windows specific type: support User Support labels Mar 13, 2018
@pradyunsg
Copy link
Member

Hi @sai306!

Are you working behind a proxy?

@pradyunsg pradyunsg added the S: awaiting response Waiting for a response/more information label Mar 13, 2018
@sai306
Copy link
Author

sai306 commented Mar 14, 2018 via email

@Mattwmaster58
Copy link

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

@pradyunsg
Copy link
Member

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

@pradyunsg
Copy link
Member

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

@pradyunsg pradyunsg removed the S: awaiting response Waiting for a response/more information label Jun 11, 2018
@TensShinet
Copy link

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 !

@archmangler
Copy link

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"

@lock
Copy link

lock bot commented May 31, 2019

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.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation OS: windows Windows specific type: support User Support
Projects
None yet
Development

No branches or pull requests

5 participants