Error could not find a version that satisfies the requirement selenium from versions none

pip install selenium throws error as: Could not find a version that satisfies the requirement selenium; No matching distribution found for selenium Please guide as to how to proceed
pip install selenium

throws error as:

Could not find a version that satisfies the requirement selenium;
No matching distribution found for selenium

Please guide as to how to proceed

undetected Selenium's user avatar

asked Dec 10, 2018 at 9:17

Tanushree Chandhok's user avatar

9

This error message…

Could not find a version that satisfies the requirement selenium;
No matching distribution found for selenium

…implies that the Python Client was unable to install the Selenium related modules.

Your main issue probhably with either with the pip version or the Python installation.

Solution

  • Uninstall the current Python installation.
  • As you are on Windows 7 professional OS use CCleaner tool to wipe off all the OS chores before the new installation of Python Client.
  • Download and install a fresh version of compatible Python 3.6.5 binary/executable.
  • Ensure you are using latest version of pip (latest version 18.0 is available now):

    C:Usersusername>python -m pip install --upgrade pip
    Collecting pip
      Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
        100% |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 1.3MB 544kB/s
    Installing collected packages: pip
      Found existing installation: pip 10.0.1
        Uninstalling pip-10.0.1:
          Successfully uninstalled pip-10.0.1
    Successfully installed pip-18.0
    
  • Install latest version of Selenium:

    C:Usersusername>pip install selenium
    Collecting selenium
      Downloading https://files.pythonhosted.org/packages/b8/53/9cafbb616d20c7624ff31bcabd82e5cc9823206267664e68aa8acdde4629/selenium-3.14.0-py2.py3-none-any.whl (898kB)
        100% |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 901kB 380kB/s
    Requirement not upgraded as not directly required: urllib3 in c:pythonlibsite-packages (from selenium) (1.22)
    Installing collected packages: selenium
      Found existing installation: selenium 3.12.0
        Uninstalling selenium-3.12.0:
          Successfully uninstalled selenium-3.12.0
    Successfully installed selenium-3.14.0      
    
  • Or:

    C:Python35Scriptspip.exe install selenium
    

answered Dec 10, 2018 at 11:59

undetected Selenium's user avatar

I had the same problem. I have conda, so I used it and it worked like a charm!

$conda install selenium

answered Mar 31, 2020 at 14:54

Mahsa's user avatar

Instead of typing in pip install silenium I just entered: «pip.exe install selenium» and this worked for me

answered Sep 25, 2020 at 15:53

Florian Heere's user avatar

This worked for me:

  1. Deactivate proxy Settings in Internet Explorer
  2. Run pycharm in Windows 10 as Administrator
  3. Then Upgrade pip with: pip install --upgrade pip
  4. Install Selenium with: pip3 install selenium

Neuron's user avatar

Neuron

4,8435 gold badges36 silver badges54 bronze badges

answered Oct 14, 2021 at 12:35

user17150351's user avatar

Sometimes you get an error when you’re trying to install a Python package
using pip. It looks like this:

Could not find a version that satisfies the requirement (from versions:)
No matching distribution found for

Some probable reasons for this error are:

  1. PyPI server isn’t responding to your requests. It can happen either because
    the PyPI server is down or because it has blacklisted your IP address. This
    happened to me once when I was trying installing packages on a server.
    This can be fixed by using a proxy with pip. See the solution below.

  2. You’re running an older pip (especially on Mac). This can be fixed by
    upgrading your pip.
    See this post on Stack Overflow.
    Thanks to Anupam Jain who pointed this in a comment.

  3. The package you’re trying to install is not available for your Python version.

  4. The package is not available for your operating system. This is a rare case
    and only happens when the package is not pure-Python, i.e. it’s been
    partially written in C or Cython. Such a package needs to be compiled for
    every operating system (Windows/Mac/Linux) and architecture (32-bit/64-bit).
    Suppose a package has only been compiled for Windows 64-bit, then you’ll get
    this error if you try to install it on Windows 32-bit, or any other
    OS.

  5. The package is not present on PyPI server. In this case pip will not work. So
    you’ll have to download and install the package manually from Github or wherever
    it is available.

Solution¶

I had this issue because PyPI server had blacklisted the IP
of my hosting provider, the obvious solution was to make pip install via a proxy.

But to see if that’s also the case with you, you can test it like this:

$ curl https://pypi.org

The requestors Network has been blacklisted due to excessive request volume. 
If you are a hosting customer, please contact your hosting company's support. 
If you are the hosting company, please contact infrastructure-staff@python.org to resolve

If you see the message similar to above, that means your IP has also been
blacklisted by https://pypi.org.

If you don’t see this message then the reason for the pip error could be that you’re using
an older version. See this post on Stack Overflow
for a solution.

Anyways, this can be fixed by using a proxy with pip.

Supplying a proxy address to pip is easy:

$ pip install -r requirements.txt --proxy address:port

Above, address and port are IP address and port of the proxy.

To find proxies, just search Google for proxy list.

Other things that I tried¶

These are some other things that I tried to get rid of this issue.
Although they didn’t work for me, but they might work for you.

  1. Changing DNS resolver of my server.
    This makes sense if your server’s DNS resolver can’t find PyPI servers.
  2. Reconfiguring SSL, reinstalling CA certificates.
    This makes sense if you don’t have updated CA certificates which are used by
    PyPI servers.
  3. Downloading packages using wget.
    This is an alternative way to install Python packages. Download them via wget
    and then install them using python setup.py install. In my case, the server was
    blacklisted by PyPI so I was getting a 403 Forbidden error.
  4. Downloading packages using curl.
    Alternative to wget. In my case I didn’t get a 403 error but rather it just
    created invalid tarball files, instead of actually downloading them.
  5. Downloading packages using git or hg.
    If your desired packages have git or hg repositories that you can clone, this
    is a good workaround.

Ah I see the Python versions case specifically is now handled, via #9708. Example output (when using Python 3.7 and a package that has dropped support for 3.7):

$ pip install ipython==8.5.0
ERROR: Ignored the following versions that require a different python version: 8.0.0 Requires-Python >=3.8; 8.0.0a1 Requires-Python >=3.8; 8.0.0b1 Requires-Python >=3.8; 8.0.0rc1 Requires-Python >=3.8; 8.0.1 Requires-Python >=3.8; 8.1.0 Requires-Python >=3.8; 8.1.1 Requires-Python >=3.8; 8.2.0 Requires-Python >=3.8; 8.3.0 Requires-Python >=3.8; 8.4.0 Requires-Python >=3.8; 8.5.0 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement ipython==8.5.0 (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0, 5.10.0, 6.0.0rc1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.3.0, 6.3.1, 6.4.0, 6.5.0, 7.0.0b1, 7.0.0rc1, 7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0, 7.3.0, 7.4.0, 7.5.0, 7.6.0, 7.6.1, 7.7.0, 7.8.0, 7.9.0, 7.10.0, 7.10.1, 7.10.2, 7.11.0, 7.11.1, 7.12.0, 7.13.0, 7.14.0, 7.15.0, 7.16.0, 7.16.1, 7.16.2, 7.16.3, 7.17.0, 7.18.0, 7.18.1, 7.19.0, 7.20.0, 7.21.0, 7.22.0, 7.23.0, 7.23.1, 7.24.0, 7.24.1, 7.25.0, 7.26.0, 7.27.0, 7.28.0, 7.29.0, 7.30.0, 7.30.1, 7.31.0, 7.31.1, 7.32.0, 7.33.0, 7.34.0)
ERROR: No matching distribution found for ipython==8.5.0

The case I saw more recently that still had confusing UX, was for a platform mismatch (a user trying to install a Windows package on Linux):
moneymeets/python-poetry-buildpack#49

Collecting numpy
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /packages/5c/28/32ca028c2dcaa3f180dcc59266d6856d3e24f63ca96b8fc4af9bdbd4ae04/numpy-1.17.4-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /packages/5c/28/32ca028c2dcaa3f180dcc59266d6856d3e24f63ca96b8fc4af9bdbd4ae04/numpy-1.17.4-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /packages/5c/28/32ca028c2dcaa3f180dcc59266d6856d3e24f63ca96b8fc4af9bdbd4ae04/numpy-1.17.4-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /packages/5c/28/32ca028c2dcaa3f180dcc59266d6856d3e24f63ca96b8fc4af9bdbd4ae04/numpy-1.17.4-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /packages/5c/28/32ca028c2dcaa3f180dcc59266d6856d3e24f63ca96b8fc4af9bdbd4ae04/numpy-1.17.4-cp38-cp38-win32.whl
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/5c/28/32ca028c2dcaa3f180dcc59266d6856d3e24f63ca96b8fc4af9bdbd4ae04/numpy-1.17.4-cp38-cp38-win32.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))

I have seen a few related questions, and I’ve tried all of their recommendations:

  • I’m using anaconda, so I downgraded from 3.7 to 3.6
  • I upgraded pip using curl https://bootstrap.pypa.io/get-pip.py | sudo python
  • I installed the latest version of openssl (1.1.1)
  • I updated all Anaconda libraries
  • I am connected to the Internet (obviously, since I’m posting here) and not behind a firewall.

And yet, every time I run «pip install » or «pip install ==» I get the following error:

ERROR: Could not find a version that satisfies the requirement (from versions: none)
ERROR: No matching distribution found for

I’m on a Mac, Mojave v10.14.4

I recently installed prodigy.ai, which seemed to replace a bunch of packages with (perhaps) older versions, but I still cannot figure out how to fix this issue. The one thing I haven’t tried is uninstalling Anaconda and reinstalling it.

Thanks for any help on this.

asked Apr 26, 2019 at 18:10

jsidell's user avatar

11

Yes, it happened to me also.

A common case in this procedure is to check if you have not made a typo when entering the package name.

answered Jun 18, 2019 at 9:15

simhumileco's user avatar

simhumilecosimhumileco

6577 silver badges14 bronze badges

To Solve this Could not find a version that satisfies the requirement You need to update your pip and setup tools and that will resolve this error.

Contents

  1. Solution 1: Just update the pip
  2. Solution 2: Use this command.
  3. Solution 3: For Requirements.txt
  4. Solution 4: Make Sure the Right Python version Using
  5. Frequently Asked Questions
  6. Summary

Solution 1: Just update the pip

You just need to update the pip and your error will be resolved. Just follow this command.

If you are a windows user Then run this command.

python -m pip install --upgrade pip

Mac users who use pip and PyPI

curl https://bootstrap.pypa.io/get-pip.py | python

And then also upgrade setuptools after doing the above.

pip install --upgrade setuptools

Solution 2: Use this command.

On Debian-based systems, I’d try

apt-get update && apt-get upgrade python-pip

Red Hat Linux-based systems:

yum update python-pip

On Mac:

sudo easy_install -U pip

Solution 3: For Requirements.txt

If You are trying to install Requirements.txt and you are facing this error then You need to use -r in the command line. Just Like This.

pip install -r requirements.txt 

And now, Your error will be resolved.

Solution 4: Make Sure the Right Python version Using

Please Make Sure You are Using Right Python Version In your Command line. If You have installed Python 3 and You are trying to use Python2 then You might face this error.

python3 -m pip install <your_pkg>

Frequently Asked Questions

  1. How to solve Could not find a version that satisfies the requirement error?

    to solve Could not find a version that satisfies the requirement error If You are trying to install Requirements.txt and you are facing this error then You need to use -r in the command line. Just Like This: pip install -r requirements.txt And now, Your error will be resolved.

  2. Could not find a version that satisfies the requirement

    to solve Could not find a version that satisfies the requirement error Please Make Sure You are Using Right Python Version In your Command line. If You have installed Python 3 and You are trying to use Python2 then You might face this error: python3 -m pip install <your_pkg>

Summary

The solution is simple you just need to update your PIP to the very latest version and then update setuptools will resolve this error. Comment below if you are still facing this error.

Also, Read

  • pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it’s not in your path

Thread Rating:

  • 0 Vote(s) — 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Issue installing selenium

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

Posts: 6,572

Threads: 116

Joined: Sep 2016

Reputation:
487

Apr-03-2020, 11:29 AM
(This post was last modified: Apr-03-2020, 11:29 AM by snippsat.)

Try from Anaconda Prompt.
You will see (base),now upgrade pip.
Example:

(base) C:UsersTom>cd ..

(base) C:Users>cd ..

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

(base) C:>pip -V
pip 20.0.2 from G:Anaconda3libsite-packagespip (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.

Posts: 8

Threads: 4

Joined: Dec 2019

Reputation:
0

Thank you very much Snippsat. It solved my issue

Possibly Related Threads…
Thread Author Replies Views Last Post
  isues installing Selenium Bhagyashree17 1 1,372 Jun-23-2020, 03:01 PM
Last Post: snippsat
  Installing PIP packages issue Renym 2 2,338 Dec-09-2019, 04:44 PM
Last Post: Axel_Erfurt

Понравилась статья? Поделить с друзьями:
  • Error could not find a version that satisfies the requirement requirements txt from versions none
  • Error could not find a version that satisfies the requirement requests from versions none
  • Error could not find a version that satisfies the requirement request from versions none
  • Error could not find a version that satisfies the requirement pywin32 from versions none
  • Error could not find a version that satisfies the requirement pyside6 from versions none