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.

Conflicts installing torchaudio-cpu through conda

See original GitHub issue

🐛 Bug

Installing torchaudio-cpu through conda (python 3.7) fails with conflicts.

To Reproduce

Steps to reproduce the behavior:

  1. start clean continuumio/anaconda3 container with docker.

docker run --rm -i -t continuumio/anaconda3 /bin/bash

  1. Inside the container, attempt to install torchaudio-cpu
# conda install torchaudio-cpu -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                              

UnsatisfiableError: The following specifications were found to be incompatible with each other:



Package tk conflicts for:
python=3.7 -> tk[version='>=8.6.7,<8.7.0a0|>=8.6.8,<8.7.0a0']
Package sqlite conflicts for:
python=3.7 -> sqlite[version='>=3.24.0,<4.0a0|>=3.25.2,<4.0a0|>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.29.0,<4.0a0']
Package scipy conflicts for:
torchaudio-cpu -> scipy
Package libffi conflicts for:
python=3.7 -> libffi[version='>=3.2.1,<4.0a0']
Package pytorch-cpu conflicts for:
torchaudio-cpu -> pytorch-cpu[version='>=1.1.0']
Package sox conflicts for:
torchaudio-cpu -> sox
Package zlib conflicts for:
python=3.7 -> zlib[version='>=1.2.11,<1.3.0a0']
Package readline conflicts for:
python=3.7 -> readline[version='>=7.0,<8.0a0']
Package libstdcxx-ng conflicts for:
python=3.7 -> libstdcxx-ng[version='>=7.2.0|>=7.3.0']
Package openssl conflicts for:
python=3.7 -> openssl[version='>=1.0.2o,<1.0.3a|>=1.0.2p,<1.0.3a|>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a']
Package ncurses conflicts for:
python=3.7 -> ncurses[version='>=6.1,<7.0a0']
Package libgcc-ng conflicts for:
python=3.7 -> libgcc-ng[version='>=7.2.0|>=7.3.0']
Package pip conflicts for:
python=3.7 -> pip
Package librosa conflicts for:
torchaudio-cpu -> librosa[version='>=0.4.3']
Package xz conflicts for:
python=3.7 -> xz[version='>=5.2.4,<6.0a0']

Expected behavior

Expect torchaudio-cpu to install without conflicts and to install and work with pytorch-cpu.

Environment

docker container as indicated above

Collecting environment information… PyTorch version: N/A Is debug build: N/A CUDA used to build PyTorch: N/A

OS: Debian GNU/Linux 10 (buster) GCC version: Could not collect CMake version: Could not collect

Python version: 3.7 Is CUDA available: N/A CUDA runtime version: Could not collect GPU models and configuration: Could not collect Nvidia driver version: Could not collect cuDNN version: Could not collect

Versions of relevant libraries: [pip] numpy==1.17.2 [pip] numpydoc==0.9.1 [conda] blas 1.0 mkl
[conda] mkl 2019.4 243
[conda] mkl-service 2.3.0 py37he904b0f_0
[conda] mkl_fft 1.0.14 py37ha843d7b_0
[conda] mkl_random 1.1.0 py37hd6b4f25_0

Additional context

We build Docker images that include pytorch, torchaudio and torchvision. One of the images is CPU-only, so we currently install pytorch and torchvision through conda:

conda install -y pytorch-cpu torchvision-cpu -c pytorch

We would like to install torchaudio-cpu the same way but the errors above prevent that. Is the torchaudio-cpu package supported through conda?

Is a conda install of torchaudio CPU-only and compatible with pytorch-cpu?

Is there a cpu-only pip package that would be compatible with pytorch-cpu?

We have been building from source after the install of pytorch-cpu like this:

apt-get install -y sox libsox-dev libsox-fmt-all
pip install cffi
pip install git+git://github.com/pytorch/audio.git

This has been working, but the recent changes to Tensor.data<T> to Tensor.data_ptr<T> have broken that build because we are building against PyTorch 1.1.0 headers (https://github.com/pytorch/audio/issues/262)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
soumithcommented, Oct 28, 2019

the start locally is the correct one. I’ll work on removing the Anaconda / No CUDA ones, they are outdated.

0reactions
ezyangcommented, Nov 1, 2019

Yes, the regular torchaudio should work with both CPU and CUDA builds of PyTorch. If this is not the case, please let us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package pytorch conflicts during installation with Conda
I'm trying to install PyTorch through conda but I'm getting “conflict” errors: I first activated the conda virtualenvironment:
Read more >
New mamba environment force torch CPU and I don't know why
To install version 1.13.0 with GPU support, run: conda install pytorch=1.13.0 torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia.
Read more >
Torchaudio Cpu - :: Anaconda.org
conda install. To install this package run one of the following: conda install -c pytorch torchaudio-cpu. Description. ×. Edit Installers. Installer, Hidden ...
Read more >
이전 버전의 PyTorch 설치하기 - 파이토치 한국 사용자 모임
To install a previous version of PyTorch via Anaconda or Miniconda, replace “0.4.1” in the following commands with the desired version (i.e., “0.2.0”)....
Read more >
Install Pytorch on Windows - GeeksforGeeks
conda install pytorch torchvision torchaudio cpuonly -c pytorch. Step 3: Check if Pytorch is successfully installed by entering the ...
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