pytorch_ask_01-How to install torchaudio via anaconda?

ID = pytorch_ask_01

文章目录

  • Question
  • Answer
    • Step1: First try and failed
    • Step2: Download the installation package
    • Step3: Change directory
    • Step4: Conda install
    • Step5: Check result
  • Reference

Question

How to install torchaudio? (anaconda environment)

Answer

Download the installation package by yourself.
Follow the procedure to make it.

Step1: First try and failed

Tried:
$ conda install -c pytorch torchaudio

However, always got failed:

Downloading and Extracting Packages
torchaudio-0.5.0     | 7.1 MB    | ###4                                  |   9%    
CondaHTTPError: HTTP 000 CONNECTION FAILED for url    
Elapsed: -An HTTP error occurred when trying to retrieve this URL.   
HTTP errors are often intermittent, and a simple retry will get you on your way.

Never mind, you can get another solution from the info.

Yes, use the url showed in the terminal and download the installation package.

Step2: Download the installation package

Go to the url: https://conda.anaconda.org/pytorch/linux-64/torchaudio-0.5.0-py37.tar.bz2

Step3: Change directory

Change directory to you download folder.

Step4: Conda install

$ conda install torchaudio-0.5.0-py37.tar.bz2.
Conda installs packages into the anaconda/pkgs directory.

Step5: Check result

$ conda list

And got:
torchaudio 0.5.0 py37

Reference

[1] Installing conda packages

你可能感兴趣的:(Use,Pytorch,anaconda)