Skip to content

“python_requires” should be set with “>=3.6”, as sklearn-pandas 2.2.0 is not compatible with all Python versions #251

Open
@PyVCEchecker

Description

@PyVCEchecker

Currently, the keyword argument python_requires of setup() is not set, and thus it is assumed that this distribution is compatible with all Python versions.
However, I found it is not compatible with Python<3.6. My local Python version is 3.5, and I encounter the following error when executing “pip install sklearn-pandas”

ERROR: Could not find a version that satisfies the requirement scikit-learn>=0.23.0 (from sklearn-pandas) (from versions: 0.9, 0.10, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.14, 0.14.1, 0.15.0b1, 0.15.0b2, 0.15.0, 0.15.1, 0.15.2, 0.16b1, 0.16.0, 0.16.1, 0.17b1, 0.17, 0.17.1, 0.18rc2, 0.18, 0.18.1, 0.18.2, 0.19b2, 0.19.0, 0.19.1, 0.19.2, 0.20rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21rc2, 0.21.0, 0.21.1, 0.21.2, 0.21.3, 0.22rc2.post1, 0.22rc3, 0.22, 0.22.1, 0.22.2.post1)  
ERROR: No matching distribution found for scikit-learn>=0.23.0 (from sklearn-pandas)

Dependencies of this distribution are listed as follows:

'scikit-learn>=0.23.0',
'scipy>=1.5.1',
'pandas>=1.1.4',
'numpy>=1.18.1'

I found that scikit-learn>=0.23.0, scipy>=1.5.1 and pandas>=1.14 require Python>=3.6, which results in installation failure of sklearn-pandas in Python3.5.

Way to fix:
modify setup() in setup.py, add python_requires keyword argument:

setup(…
     python_requires='>=3.6'
     …)

Thanks for your attention.
Best regrads,
PyVCEchecker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions