Repository: pytorch
Issue: AttributeError: module 'torch._C' has no attribute 'ComplexDoubleStorageBase'
Labels: module: build,triaged

## 🐛 Bug

I have a pytorch 1.5.1+cu101 installation that was done with pip (pip3). Now I would like to install a newer version with "pip install --user" in $HOME/.local without overwriting the existing one. For all other Python packages this works without any problem. But for PyTorch it does not matter what version I install locally, I always get errors on importing the local version

This is on a HPC cluster, so building PyTorch with conda is not an option (and I assume it must also be possible to install PyTorch with pip)

## To Reproduce

Steps to reproduce the behavior:

1. Install a PyTorch version in a central Python installation
2. Install a second version locally with pip install --user
3. Start Python and import torch

```
[sfux@lo-login-02 ~]$ module list

Currently Loaded Modules:
  1) StdEnv   2) gcc/6.3.0   3) openblas/0.2.19   4) cuda/10.1.243   5) cudnn/7.6.4   6) jpeg/9b   7) libpng/1.6.27   8) nccl/2.4.8-1   9) python_gpu/3.7.4  10) libsndfile/1.0.31



[sfux@lo-login-02 ~]$ pip list | grep torch
gpytorch              1.0.1
torch                 1.5.1+cu101
torchtext             0.6.0
torchvision           0.6.1+cu101
[sfux@lo-login-02 ~]$ python
Python 3.7.4 (default, Oct 17 2019, 10:45:10)
[GCC 6.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'1.5.1+cu101'
>>> quit()
[sfux@lo-login-02 ~]$ which pip
/cluster/apps/python/3.7.4_gpu_gcc630/x86_64/bin/pip
[sfux@lo-login-02 ~]$ pip install --user torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch==1.7.1+cu101
  Using cached https://download.pytorch.org/whl/cu101/torch-1.7.1%2Bcu101-cp37-cp37m-linux_x86_64.whl (735.4 MB)
Collecting torchvision==0.8.2+cu101
  Using cached https://download.pytorch.org/whl/cu101/torchvision-0.8.2%2Bcu101-cp37-cp37m-linux_x86_64.whl (12.8 MB)
Collecting torchaudio==0.7.2
  Using cached torchaudio-0.7.2-cp37-cp37m-manylinux1_x86_64.whl (7.6 MB)
Requirement already satisfied: numpy in /cluster/apps/python/3.7.4_gpu_gcc630/x86_64/lib64/python3.7/site-packages (from torch==1.7.1+cu101) (1.17.3)
Collecting typing-extensions
  Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Requirement already satisfied: pillow>=4.1.1 in /cluster/apps/python/3.7.4_gpu_gcc630/x86_64/lib64/python3.7/site-packages (from torchvision==0.8.2+cu101) (6.2.0)
Installing collected packages: typing-extensions, torch, torchvision, torchaudio
Successfully installed torch-1.7.1+cu101 torchaudio-0.7.2 torchvision-0.8.2+cu101 typing-extensions-3.7.4.3
[sfux@lo-login-02 ~]$ pip list | grep torch
gpytorch              1.0.1
torch                 1.7.1+cu101
torchaudio            0.7.2
torchtext             0.6.0
torchvision           0.8.2+cu101
[sfux@lo-login-02 ~]$ python
Python 3.7.4 (default, Oct 17 2019, 10:45:10)
[GCC 6.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/cluster/home/sfux/.local/lib/python3.7/site-packages/torch/__init__.py", line 455, in <module>
    class ComplexDoubleStorage(_C.ComplexDoubleStorageBase, _StorageBase):
AttributeError: module 'torch._C' has no attribute 'ComplexDoubleStorageBase'
>>>
```

## Expected behavior

import torch should import the pytorch module and not throw an AttributeError.

## Environment

 - PyTorch Version (e.g., 1.0): 1.5.1+cu101 and 1.7.1+cu101
 - OS (e.g., Linux): CentOS Linux release 7.9.2009 (Core)
 - How you installed PyTorch (`conda`, `pip`, source): pip
 - Build command you used (if compiling from source): -
 - Python version: 3.7.4 (compiled from source code)
 - CUDA/cuDNN version: CUDA:10.1.243, cuDNN 7.6.4
 - GPU models and configuration: -
 - Any other relevant information: -

## Additional context

I tried to install the second PyTorch version in a venv (python -m venv --system-site-packages myenv) and there I get the same error when running "import torch".

cc @malfet @seemethere @walterddr