dmlc / gluon-cv

Gluon CV Toolkit
http://gluon-cv.mxnet.io
Apache License 2.0
5.82k stars 1.21k forks source link

“python_requires” should be set with “>=3.6”, as gluoncv 0.10.5 is not compatible with all Python versions. #1741

Closed PyVCEchecker closed 2 years ago

PyVCEchecker commented 2 years ago

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 gluoncv”

Collecting gluoncv
  Downloading gluoncv-0.10.5-py2.py3-none-any.whl (1.3 MB)
     |████████████████████████████████| 1.3 MB 393 kB/s 
Collecting tqdm
  Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Processing /root/.cache/pip/wheels/57/d0/2c/e2003abb5bc1a94c2e8a6fe1c03b8055d074e34c13672e7eb7/PyYAML-5.3.1-cp35-cp35m-linux_x86_64.whl
Collecting scipy
  Using cached scipy-1.4.1-cp35-cp35m-manylinux1_x86_64.whl (26.0 MB)
ERROR: Could not find a version that satisfies the requirement autocfg (from gluoncv) (from versions: none)
ERROR: No matching distribution found for autocfg (from gluoncv)

Dependencies of this distribution are listed as follows:

'numpy',
'tqdm',
'requests',
'matplotlib',
'portalocker',
'Pillow',
'scipy',
'yacs',
'pandas',
'pyyaml',
'autocfg',

I found that autocfg requires Python>=3.6, which results in installation failure of autocfg in Python 3.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

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.