YuanGongND / ast

Code for the Interspeech 2021 paper "AST: Audio Spectrogram Transformer".
BSD 3-Clause "New" or "Revised" License
1.17k stars 221 forks source link

Installing requirements issues #123

Open BehrouzGit opened 8 months ago

BehrouzGit commented 8 months ago

Installing requirements issues:

  1. on python 3.11:

    "ERROR: Ignored the following versions that require a different python version: 0.36.0 Requires-Python >=3.6,<3.10; 0.37.0 Requires-Python >=3.7,<3.10; 0.38.0 Requires-Python >=3.7,<3.11; 0.38.1 Requires-Python >=3.7,<3.11 ERROR: Could not find a version that satisfies the requirement llvmlite==0.36.0 (from versions: 0.2.0, 0.2.1, 0.2.2, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0.1, 0.12.1, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.17.1, 0.18.0, 0.19.0, 0.20.0, 0.21.0, 0.22.0, 0.23.0, 0.23.2, 0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.27.1, 0.28.0, 0.29.0, 0.30.0, 0.31.0, 0.32.0, 0.32.1, 0.33.0, 0.34.0, 0.35.0, 0.39.0, 0.39.1, 0.40.0rc1, 0.40.0, 0.40.1rc1, 0.40.1, 0.41.0rc1, 0.41.0, 0.41.1, 0.42.0rc1, 0.42.0) ERROR: No matching distribution found for llvmlite==0.36.0"

  2. on python 3.10:

    ERROR: Ignored the following versions that require a different python version: 0.36.0 Requires-Python >=3.6,<3.10; 0.37.0 Requires-Python >=3.7,<3.10 ERROR: Could not find a version that satisfies the requirement llvmlite==0.36.0 (from versions: 0.2.0, 0.2.1, 0.2.2, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0.1, 0.12.1, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.17.1, 0.18.0, 0.19.0, 0.20.0, 0.21.0, 0.22.0, 0.23.0, 0.23.2, 0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.27.1, 0.28.0, 0.29.0, 0.30.0, 0.31.0, 0.32.0, 0.32.1, 0.33.0, 0.34.0, 0.35.0, 0.38.0, 0.38.1, 0.39.0, 0.39.1, 0.40.0rc1, 0.40.0, 0.40.1rc1, 0.40.1, 0.41.0rc1, 0.41.0, 0.41.1, 0.42.0rc1, 0.42.0) ERROR: No matching distribution found for llvmlite==0.36.0

  3. on python 3.9:

    ERROR: Cannot install -r requirements.txt (line 10), -r requirements.txt (line 11), -r requirements.txt (line 8) and torch==1.8.1 because these package versions have conflicting dependencies.

    The conflict is caused by: The user requested torch==1.8.1 timm 0.4.5 depends on torch>=1.4 torchaudio 0.8.1 depends on torch==1.8.1 torchvision 0.10.0 depends on torch==1.9.0

  4. I removed the specific versions of the packages and tried again with 3.11:

     error: subprocess-exited-with-error
    
     × Getting requirements to build wheel did not run successfully.
     │ exit code: 1
     ╰─> [15 lines of output]
         The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
         rather than 'sklearn' for pip commands.
    
         Here is how to fix this error in the main use cases:
         - use 'pip install scikit-learn' rather than 'pip install sklearn'
         - replace 'sklearn' by 'scikit-learn' in your pip requirements files
    (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
         - if the 'sklearn' package is used by one of your dependencies,
    it would be great if you take some time to track which package uses
    'sklearn' instead of 'scikit-learn' and report it to their issue tracker
         - as a last resort, set the environment variable
    SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
    
         More information is available at
         https://github.com/scikit-learn/sklearn-pypi-package
         [end of output]
    
     note: This error originates from a subprocess, and is likely not a problem with pip.

    error: subprocess-exited-with-error

nikhilsos commented 4 months ago

Had the same issue, I installed cuda specific torch stuffs first, then others, worked for me, might work for you: https://github.com/YuanGongND/ast/issues/135