question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PyPI installation fails with a conda environment on Windows OS

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Gastroncommented, Jan 3, 2022

You downloaded BeechSprain but not SpeechBrain,Why?

BeechSprain was used for an early β€œstealth release” alpha version before the full public release.

1reaction
aviadbcommented, Feb 16, 2021

I managed to install SpeechBrain on Windows host with Ubuntu 20.04 WSL2 instance, using Miniconda.

  1. Installed miniconda and execute β€œconda update --all”
  2. Create environment without giving python version.
  3. activate new environment
  4. conda install pip
  5. git clone https://github.com/speechbrain/speechbrain.git
  6. cd speechbrain
  7. pip install -r requirements.txt
  8. pip install --editable . Installation works great and test installation passes.
Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install fails inside conda environment but works in base
Open "Developer Command Line Prompt for VS2017" and do pip install spectrum from there. – fukanchik Β· I want to understand why installation...
Read more >
Troubleshooting β€” conda 22.11.1.post13+5eef286ca ...
Occasionally, an installed package becomes corrupted. Conda works by unpacking the packages in the pkgs directory and then hard-linking them to the environment....
Read more >
Using Pip in a Conda Environment - Anaconda
Unfortunately, issues can arise when conda and pip are used together to create an environment, especially when the tools are usedΒ ...
Read more >
Manage Python environments and interpreters - Visual Studio ...
If no environments appear, it means Visual Studio failed to detect any Python installations in standard locations. For example, you might haveΒ ...
Read more >
Installing Ray β€” Ray 2.2.0 - the Ray documentation
Install Ray with support for the dashboard + cluster launcher pip install -U ... a conda environment, it is recommended to install Ray...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found