Repository: pykeen/pykeen
Issue: TypeError: 'type' object is not subscriptable
Root cause: Environment Incompatibility

**Describe the bug**
the "type" object is not subscriptable. And, I just try to run the example test but find the error. It seems to relate to the dataset package.

**To Reproduce**
```console
pip install git+https://github.com/pykeen/pykeen.git
```
```python
from pykeen.pipeline import pipeline
result = pipeline(
    model='TransE',
    dataset='nations',
)
```

**Environment:**
Installing collected packages: pykeen
Successfully installed pykeen-1.6.1.dev0
python 3.8, conda, windows10

**Additional information**
```python-traceback
Traceback (most recent call last):
  File "D:/desktop/chris/codes/multihop-baseline/src/test.py", line 3, in <module>
    from pykeen.pipeline import pipeline
  File "E:\anaconda\lib\site-packages\pykeen\pipeline\__init__.py", line 5, in <module>
    from .api import (
  File "E:\anaconda\lib\site-packages\pykeen\pipeline\api.py", line 202, in <module>
    from ..datasets import get_dataset
  File "E:\anaconda\lib\site-packages\pykeen\datasets\__init__.py", line 17, in <module>
    from .base import (  # noqa:F401
  File "E:\anaconda\lib\site-packages\pykeen\datasets\base.py", line 24, in <module>
    from ..triples import CoreTriplesFactory, TriplesFactory
  File "E:\anaconda\lib\site-packages\pykeen\triples\__init__.py", line 5, in <module>
    from .instances import (
  File "E:\anaconda\lib\site-packages\pykeen\triples\instances.py", line 31, in <module>
    class Instances(data.Dataset[BatchType], Generic[BatchType], ABC):
TypeError: 'type' object is not subscriptable

Process finished with exit code 1
```



Hi @chrislouis0106 ,

would you please copy the output of `pykeen version` to the issue?

> Hi @chrislouis0106 ,
> 
> would you please copy the output of `pykeen version` to the issue?

Yeah, that is, 
```
(base) D:\desktop\chris\codes\multihop-baseline>pykeen --version
Traceback (most recent call last):
  File "e:\anaconda\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "e:\anaconda\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\anaconda\Scripts\pykeen.exe\__main__.py", line 4, in <module>
  File "e:\anaconda\lib\site-packages\pykeen\cli.py", line 26, in <module>
    from .datasets import dataset_resolver
  File "e:\anaconda\lib\site-packages\pykeen\datasets\__init__.py", line 17, in <module>
    from .base import (  # noqa:F401
  File "e:\anaconda\lib\site-packages\pykeen\datasets\base.py", line 24, in <module>
    from ..triples import CoreTriplesFactory, TriplesFactory
  File "e:\anaconda\lib\site-packages\pykeen\triples\__init__.py", line 5, in <module>
    from .instances import (
  File "e:\anaconda\lib\site-packages\pykeen\triples\instances.py", line 31, in <module>
    class Instances(data.Dataset[BatchType], Generic[BatchType], ABC):
TypeError: 'type' object is not subscriptable

(base) D:\desktop\chris\codes\multihop-baseline>pykeen version
Traceback (most recent call last):
  File "e:\anaconda\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "e:\anaconda\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\anaconda\Scripts\pykeen.exe\__main__.py", line 4, in <module>
  File "e:\anaconda\lib\site-packages\pykeen\cli.py", line 26, in <module>
    from .datasets import dataset_resolver
  File "e:\anaconda\lib\site-packages\pykeen\datasets\__init__.py", line 17, in <module>
    from .base import (  # noqa:F401
  File "e:\anaconda\lib\site-packages\pykeen\datasets\base.py", line 24, in <module>
    from ..triples import CoreTriplesFactory, TriplesFactory
  File "e:\anaconda\lib\site-packages\pykeen\triples\__init__.py", line 5, in <module>
    from .instances import (
  File "e:\anaconda\lib\site-packages\pykeen\triples\instances.py", line 31, in <module>
    class Instances(data.Dataset[BatchType], Generic[BatchType], ABC):
TypeError: 'type' object is not subscriptable
```

We're looking for something like this
<img width="682" alt="Screen Shot 2021-12-07 at 20 00 13" src="https://user-images.githubusercontent.com/5069736/145129658-aa3c4cfb-e35e-4669-935a-fd1d95af82e2.png">


I think it will show that you've got different version of python installed, and the anaconda installation is using an earlier that did not support generics

@chrislouis0106 ohhhh I see what's going on. How about `python -m pykeen version` and `python --version`, to see if your pykeen is really inside the python you think it is

Also please report the output of `python -c "import torch; print(torch.__version__)"`, you might be using an old version of pytorch before generics were added to the Dataset object (I think this is all versions < 1.9)

I see that, and I use the torch1.6. Thank you.

Lucky for you, there are a few years worth of improvements just waiting for your upgrade! I'm sure upgrading Python will be a nice experience too (if you get the new pip, you should also be warned of these kinds of dependency conflicts too). Enjoy!