ictnlp / StreamSpeech

StreamSpeech is an “All in One” seamless model for offline and simultaneous speech recognition, speech translation and speech synthesis.
https://ictnlp.github.io/StreamSpeech-site/
MIT License
885 stars 66 forks source link

pip install fairseq fails due to invalid metadata for PyYAML dependency in omegaconf #11

Open Gan-Xing opened 3 months ago

Gan-Xing commented 3 months ago

Title

pip install fairseq fails due to invalid metadata for PyYAML dependency in omegaconf

Issue Description

Environment:

Steps to Reproduce:

  1. Create and activate conda environment:

    conda create -n streamspeech python=3.10 -y
    conda activate streamspeech
  2. Install dependencies:

    conda install pytorch=2.0.1 torchvision torchaudio cudatoolkit=11.7 -c pytorch
    sudo apt-get update
    sudo apt-get install -y build-essential python3-dev
    pip install cython numpy
    pip install --upgrade pip setuptools
    pip install PyYAML
  3. Check PyYAML version:

    python -c "import yaml; print(yaml.__version__)"
    # Output: 6.0.1
  4. Try to install fairseq:

    pip install --editable ./ --no-build-isolation

Observed Behavior:

Expected Behavior: fairseq should be installed without errors.

Additional Information:

Notes:

Steps Tried:

  1. Upgrading/downgrading pip, setuptools, and wheel.
  2. Installing specific versions of PyYAML and omegaconf.
  3. Setting up a new conda environment with specific versions of dependencies.
  4. Verifying GCC installation and setting default versions.

Request for Help: I need assistance in resolving this installation failure. Any guidance or solutions would be appreciated.

Contact Information: 599153574@qq.com

Labels

maxjkwang commented 3 months ago

I believe it's due to a newer version of pip. I'm using pip 24.0, and it gives me the following warning but works fine:

DEPRECATION: omegaconf 2.0.6 has a non-standard dependency specifier PyYAML>=5.1.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of omegaconf or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063

I'd say downgrading pip is probably the easiest way, or try upgrading/editing omegaconf to see if they fixed the issue in a newer version, as is mentioned in the warning.

I see that you've tried downgrading pip, but I believe it should work as it's pip that is unhappy about the dependencies.