Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue installing selenium
#1
I am trying to install selenium with pi. It give error. My system configurations
and error details are as under:

System Configurations:
O/S: Windows 10 with Anaconda python and pip installed

Error Log:

C:\>pip install selenium
WARNING: pip is configured with locations that require TLS/SSL, however the ssl
module in Python is not available.

Collecting selenium
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL becau
se the SSL module is not available.")': /simple/selenium/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL becau
se the SSL module is not available.")': /simple/selenium/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL becau
se the SSL module is not available.")': /simple/selenium/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL becau
se the SSL module is not available.")': /simple/selenium/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL becau
se the SSL module is not available.")': /simple/selenium/
Could not fetch URL https://pypi.org/simple/selenium/: There was a problem con
firming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max
retries exceeded with url: /simple/selenium/ (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.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming
the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retrie
s exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS UR
L because the SSL module is not available.")) - skipping
Reply
#2
Try from Anaconda Prompt.
You will see (base),now upgrade pip.
Example:
(base) C:\Users\Tom>cd ..

(base) C:\Users>cd ..

(base) C:\>python -m pip install --upgrade pip
Requirement already up-to-date: pip in g:\anaconda3\lib\site-packages (20.0.2)

(base) C:\>pip -V
pip 20.0.2 from G:\Anaconda3\lib\site-packages\pip (python 3.7)

# Try install
(base) C:\>pip install selenium
This take longer time,but will also install or upgrade SSL libraries that Anaconda use internally.
(base) C:\>conda update conda
......
pyopenssl-19.1.0     | 47 KB     | #################################### | 100%
openssl-1.1.1f       | 4.7 MB    | #################################### | 100%
Try install again.
Reply
#3
Thank you very much Snippsat. It solved my issue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Issue installing selenium Akshat_Vashisht 1 550 Oct-18-2023, 02:08 PM
Last Post: Larz60+
  isues installing Selenium Bhagyashree17 1 2,031 Jun-23-2020, 03:01 PM
Last Post: snippsat
  Installing PIP packages issue Renym 2 3,051 Dec-09-2019, 04:44 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020