title: pytorch geometric "Detected that PyTorch and torch_sparse were compiled with different CUDA versions" on google colab
body: <p>I'm new to pytorch geometric, tried to install it to my computer but failed, so I'm trying to run the code on Google Colab instead. According to this previous question (which didn't help me and I'mnot sure its the same issue):</p>
  
  <p><a href="https://stackoverflow.com/questions/60236134/pytorch-geometric-cuda-installation-issues-on-google-colab">PyTorch Geometric CUDA installation issues on Google Colab</a></p>
  
  <p>I did: </p>
  
  <pre><code>!pip install --upgrade torch-scatter
  
  !pip install --upgrade torch-sparse
  
  !pip install --upgrade torch-cluster
  
  !pip install --upgrade torch-spline-conv 
  
  !pip install torch-geometric
  
  !pip install torch-cluster==latest+cu101 -f https://s3.eu-central-1.amazonaws.com/pytorch-geometric.com/whl/torch-1.4.0.html 
  
  !pip install torch-scatter==latest+cu101 torch-sparse==latest+cu101 torch-spline-conv==latest+cu101 -f https://s3.eu-central-1.amazonaws.com/pytorch-geometric.com/whl/torch-1.4.0.html
  </code></pre>
  
  <p>they print:</p>
  
  <pre><code>Successfully installed torch-cluster-1.5.4
  
  Successfully installed torch-scatter-2.0.4 torch-sparse-0.6.1 torch-spline-conv-1.2.0
  </code></pre>
  
  <p>However, when I try to run </p>
  
  <pre><code>import torch_geometric.datasets as datasets
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>RuntimeError: Detected that PyTorch and torch_sparse were compiled with different CUDA versions. PyTorch has CUDA version 10.1 and torch_sparse has CUDA version 0.0. Please reinstall the torch_sparse that matches your PyTorch install.
  </code></pre>
  
  <p>Any help would be greatly appretiated.</p>