I wanted to install Pytorch1.1.0 along with cuda9.0
Referring https://pytorch.org/get-started/previous-versions/ 9, Used following command.
Following command fails, attempting to install pytorch1.1.0 of cuda10
conda install pytorch=1.1.0 cuda90 -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/junho/anaconda3

  added / updated specs:
    - cuda90
    - pytorch=1.1.0


The following NEW packages will be INSTALLED:

  cuda90             pytorch/linux-64::cuda90-1.0-h6433d27_0
  cudatoolkit        pkgs/main/linux-64::cudatoolkit-10.0.130-0
  ninja              pkgs/main/linux-64::ninja-1.9.0-py37hfd86e86_0
  pytorch            pytorch/linux-64::pytorch-1.1.0-py3.7_cuda10.0.130_cudnn7.5.1_0


causing
AssertionError:
The NVIDIA driver on your system is too old (found version 9010).
Please update your GPU driver by downloading and installing a new
version from the URL: http://www.nvidia.com/Download/index.aspx
Alternatively, go to: https://pytorch.org to install
a PyTorch version that has been compiled with your version
of the CUDA driver.
terminate called recursively
terminate called without an active exception
Aborted (core dumped)

The following command works.
conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/junho/anaconda3

  added / updated specs:
    - cudatoolkit=9.0
    - pytorch
    - torchvision


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cudatoolkit-9.0            |       h13b8566_0       237.0 MB
    pytorch-1.1.0              |py3.7_cuda9.0.176_cudnn7.5.1_0       376.8 MB  pytorch
    torchvision-0.3.0          | py37_cu9.0.176_1         3.7 MB  pytorch
    ------------------------------------------------------------
                                           Total:       617.5 MB

The following NEW packages will be INSTALLED:

  cudatoolkit        pkgs/main/linux-64::cudatoolkit-9.0-h13b8566_0
  ninja              pkgs/main/linux-64::ninja-1.9.0-py37hfd86e86_0
  pytorch            pytorch/linux-64::pytorch-1.1.0-py3.7_cuda9.0.176_cudnn7.5.1_0
  torchvision        pytorch/linux-64::torchvision-0.3.0-py37_cu9.0.176_1