Unable to install Pytorch in Ubuntu
I'm using the following command to install pytorch in my conda environment.
conda install pytorch=0.4.1 cuda90 -c pytorch

However, I'm getting the following error

Solving environment: failed
PackagesNotFoundError: The following packages are not available from
current channels:

pytorch=0.4.1
cuda90

Current channels:

https://conda.anaconda.org/pytorch/linux-32
https://conda.anaconda.org/pytorch/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-32
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/noarch
https://repo.anaconda.com/pkgs/main/linux-32
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-32



To search for alternate channels that may provide the conda package
you're looking for, navigate to
https://anaconda.org


How can I sort this out?
I have ofcourse installed cuda 9 and nvcc works.

Go directly to the pytorch website and follow the instructions for your setup and it will tell you exactly the command required to install - pytorch - get started
For example:

If you're looking for older versions of PyTorch, the version history and commands to install can be found here - Installing Previous Versions of PyTorch
If this doesn't work for you, your last option is to build from source yourself. Here's the GitHub repo for version 0.4.1 - pytorch at 0.4.1. The steps to install from source are outlined on the repo here.
