Skip to content

PyPI installation fails with a conda environment on Windows OS #512

@KacperKubara

Description

@KacperKubara

Hi!
I've tried following recommended pypi installation but it seems that there are some conflicts dependencies.

Steps to reproduce the error ( Use Windows OS without WSL support):

  1. conda create -n "speechbrain_env" Python=3.8
  2. conda activate speechbrain_env
  3. pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple BeechSprain

The following error I get is:

(speechbrain_env) C:\Users\kacpe\Desktop\Github>pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple BeechSprain
Looking in indexes: https://test.pypi.org/simple/, https://pypi.org/simple
Collecting BeechSprain
  Downloading https://test-files.pythonhosted.org/packages/98/6c/f3b5ea8582e75a9097f9d2aab47bb380a337acf3874ad87d208b01dc9cae/BeechSprain-0.5.3-py3-none-any.whl (324 kB)
     |████████████████████████████████| 324 kB 3.3 MB/s
  Downloading https://test-files.pythonhosted.org/packages/b9/7f/a2506025df280b1cf9ed4032bfbd1afbbd1555ce919061ee157889d467c6/BeechSprain-0.5.2-py3-none-any.whl (244 kB)
     |████████████████████████████████| 244 kB 1.7 MB/s
  Downloading https://test-files.pythonhosted.org/packages/28/aa/a6802f8f2d39199f43fe220833a0dd5a12ee9aa9f34f60b6c90178bbc57f/BeechSprain-0.5.1-py3-none-any.whl (244 kB)
     |████████████████████████████████| 244 kB 2.2 MB/s
ERROR: Cannot install beechsprain==0.5.1, beechsprain==0.5.2 and beechsprain==0.5.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    beechsprain 0.5.3 depends on torchaudio
    beechsprain 0.5.2 depends on torchaudio
    beechsprain 0.5.1 depends on torchaudio

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions