Bottom Page

Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 All pip install attempts are met with SSL error
#1
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?
Quote
#2
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
Quote
#3
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?
Quote
#4
(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
metulburr likes this post
Quote
#5
(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.
Quote
#6
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
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Error message when trying to install Matplotlib in Python3.8 Transitionyte 5 468 Jan-22-2020, 11:52 PM
Last Post: Transitionyte
  pip install pandas ERROR pythondudu 4 3,994 Jan-14-2020, 03:00 AM
Last Post: hancel
  matplotlib pip install error Paul_Grosvenor 3 362 Nov-18-2019, 01:11 PM
Last Post: buran
  Shutil attempts to copy directories that don't exist ConsoleGeek 5 328 Oct-29-2019, 09:26 PM
Last Post: Gribouillis
  Invalid archive error when attempting to install dash bootstrap components meaydemi 0 1,530 Jul-11-2019, 05:49 PM
Last Post: meaydemi
  Cannot update or install anything with pip, SSL error nickystixx45 6 50,268 Mar-26-2019, 03:42 AM
Last Post: nickystixx45
  Please help i get an error when trying to install boolexpr using pip? Guest 2 475 Mar-10-2019, 11:28 PM
Last Post: Guest
  pip install xlrd error sandy 3 2,319 Jan-19-2019, 08:01 AM
Last Post: hbknjr
  "100 prisoner problem" (attempts) boris602 11 2,338 Jan-28-2018, 11:13 PM
Last Post: j.crater
  [Error 2] running from cmd win 10 fresh install thesuperchimp 3 1,935 Mar-02-2017, 08:26 PM
Last Post: metulburr

Forum Jump:


Users browsing this thread: 2 Guest(s)