Python Forum

Full Version: All pip install attempts are met with SSL error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Using Windows...
Python 3.6.3
When I attempt to install anything using:

Quote:C:\Users\Eric>pip install ssl
Collecting ssl
Could not fetch URL https://pypi.python.org/simple/ssl/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) - skipping
Could not find a version that satisfies the requirement ssl (from versions: )
No matching distribution found for ssl

I have found the trusted--host settings but this affects everything that I do in python. I have pyCharm and installing packages fail there as well for the same issue.

How do I resolve this issue at it's root rather than using trusted--host workaround?
is this a personal computer at home or a business computer that might have a web content filter?

Quote:On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable.

On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf.

On Windows the configuration file is %APPDATA%\pip\pip.ini.
Do you have a config file with the content of...?
[global]
trusted-host = pypi.python.org
Thanks so much for your answer! Perfect! I did not have any folder or file for pip,ini. I created one with the trusted-host line and that helped. That hard codes the workaround. I can now install from the command line and in pyCharm.

(Oct-15-2017, 09:13 PM)metulburr Wrote: [ -> ]is this a personal computer at home or a business computer that might have a web content filter?

A personal computer with a simple network configuration. I also disabled my firewall as a test.

My next question is what is the root cause? This seems like a work around. It bypasses python's attempt to prevent a man in the middle attack. It's like I need a cert installed on my system. How?
(Oct-15-2017, 09:13 PM)metulburr Wrote: [ -> ]is this a personal computer at home or a business computer that might have a web content filter?

Quote:On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable.

On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf.

On Windows the configuration file is %APPDATA%\pip\pip.ini.
Do you have a config file with the content of...?
[global]
trusted-host = pypi.python.org

Thank you. Was very helpful
(Oct-15-2017, 09:41 PM)flycast Wrote: [ -> ]My next question is what is the root cause?
i am not sure what the root cause of this is. I think it might be Pycharm related, but i am unsure.
this worked
https://python-forum.io/Thread-Cannot-up...-SSL-error
python -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip