Home>

When I tried to install with the pip command, I got an error.
It seems that SSL is not working, but I do not know where and how to fix it.

Even if you perform the method (ini file creation) introduced in https://qiita.com/kekosh/items/e96e822bf9cb6ca1aff8
The same error has occurred.

For user local
% APPDATA% \ pip \ pip.ini

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


(Since yesterday, I have been struggling to build the environment.)

environment
Windows10 Pro (64bit)
conda version: 4.8.3
conda-build version: 3.18.11
python version: 3.8.3.final.0

Environment variables are set in VScode, the environment variable of the PC system.
Any program that does not import modules is working properly.

error contents

pip install selenium
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python
is not available.
WARNING: Retrying (Retry (total = 4, connect = None, read = None, redirect = None, status = None)) after connection broken by'SSLError ("Can't connect to HTTPS URL because the SSL module is not available." ")':/simple/selenium /
WARNING: Retrying (Retry (total = 3, connect = None, read = None, redirect = None, status = None)) after connection broken by'SSLError ("Can't connect to HTTPS URL because the SSL module is not available." ")':/simple/selenium /
WARNING: Retrying (Retry (total = 2, connect = None, read = None, redirect = None, status = None)) after connection broken by'SSLError ("Can't connect to HTTPS URL because the SSL module is not available." ")':/simple/selenium /
WARNING: Retrying (Retry (total = 1, connect = None, read = None, redirect = None, status = None)) after connection broken by'SSLError ("Can't connect to HTTPS URL because the SSL module is not available." ")':/simple/selenium /
WARNING: Retrying (Retry (total = 0, connect = None, read = None, redirect = None, status = None)) after connection broken by'SSLError ("Can't connect to HTTPS URL because the SSL module is not available." ")':/simple/selenium /
Could not fetch URL https://pypi.org/simple/selenium/: There was a problem confirming the ssl cerselenium/(Caused by SSLError ("Can't connect to HTTPS URL because the SSL module is not available.")) --skipping
ERROR: Could not find a version that satisfies the requirement selenium (from versions: none)
ERROR: No matching distribution found for selenium
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python
is not available.

Please. Please help me anyway.

  • Answer # 1

    Uninstall all python, anaconda, vscode, install only python and vscode
    After running pip install selenium, I was able to install.

  • Answer # 2

    When I searched for the error message, the following page was hit.
    It's a similar phenomenon, but how about it?

    https://qiita.com/atsonic/items/be5cdc7cf066ae947426