ERROR: Package 'imageio' requires a different Python: 2.7.17 not

created at 07-04-2021 views: 3

description

I encountered the following error when installing imgaug using Python2.7: 

root@user-desktop:~/samples# pip2 install imgaug

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

Collecting imgaug

  Using cached imgaug-0.4.0-py2.py3-none-any.whl (948 kB)

Collecting imageio

  Using cached imageio-2.8.0.tar.gz (3.3 MB)

ERROR: Package 'imageio' requires a different Python: 2.7.17 not in '>=3.5' 

Check the version of imageio  and found the problem.

imageio 2.8.0
pip install imageio==2.8.0

Can only run on Python 3.5+

imageio 2.6.1
pip install imageio==2.6.1

Can run on Python 2.7 and 3.4+

solution:

Install 2.6.1 or an earlier version. The default version cannot be installed.

Please log in to leave a comment.