Python Forum
How to install Selenium on Python 3.6.15
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install Selenium on Python 3.6.15
#1
Hello,

I have an old computer with win7 and Python 3.6.16 installed. Is there a way to get Selenium installed and which version would i need?

Greetings!
Reply
#2
you should be able to use the current version of selenium, as it is backwards compatible (at least as far as python 3.6).
Reply
#3
You're running on an older system (Windows 7 and Python 3.6.16), which presents some challenges for getting the latest software. Here are few things that you can do,
  • Selenium 4.x (the current major version) officially requires Python 3.9 or higher. You will not be able to install or use Selenium 4 directly with Python 3.6.16.
  • You will need to use an older version of Selenium, specifically from the Selenium 3.x series. Selenium 3.x was compatible with Python 3.6.
MarkMan likes this post
Reply
#4
While Selenium 4.x officially lists Python 3.7+ as a requirement, some users report it partially works on Python 3.6. However, there may be edge cases or unforeseen issues. Here’s how to proceed:

Option 1: Try Selenium 4.x (Unofficially)
Latest Selenium 4.x might work, but no guarantees. Test thoroughly.
sh
pip install selenium --upgrade
If you encounter errors (e.g., SyntaxError due to Python 3.6 incompatibility), downgrade to Selenium 3.141.0.

Option 2: Use Selenium 3.141.0 (Stable for Python 3.6)
Guaranteed compatibility:
sh
pip install selenium==3.141.0
Works with:

Older browsers (Firefox ESR, Chrome ≤81).

Legacy WebDrivers (GeckoDriver 0.26.0, ChromeDriver 79.0.3945.36).

Key Considerations
Browser Limitations:

Modern browsers (Chrome/Firefox) no longer support Windows 7. You’ll need:

Firefox ESR 52.x or Chrome 81 (last Win7-compatible versions).

Matching WebDriver versions (e.g., GeckoDriver 0.26.0 for Firefox ESR).

SSL/HTTPS Issues:

Older Python/WebDriver combos may fail on modern HTTPS sites. Fixes:

sh
pip install --upgrade certifi urllib3
Alternative: Portable Browsers:

Use portable versions of old browsers (e.g., Portable Chrome 79).

Final Recommendation
For reliability: Stick with Selenium 3.141.0 + legacy browsers.

For experimentation: Try Selenium 4.x but expect potential breaks.
MarkMan likes this post
Reply
#5
Quote:For reliability: Stick with Selenium 3.141.0 + legacy browsers.

For experimentation: Try Selenium 4.x but expect potential breaks.

Thank you i did not write you back. But this spot on how i ended up with Thumbs Up :
Python 3.8.12 and Selenium 3.141.0

Which works so far.
Thanks again!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pip wont install selenium simon1 2 6,624 Nov-03-2017, 09:10 PM
Last Post: simon1
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 5,233 Nov-03-2017, 08:41 PM
Last Post: metulburr
  selenium-3.0.1.tar.gz install Blue Dog 3 9,253 Nov-17-2016, 08:47 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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