nschaetti / EchoTorch

A Python toolkit for Reservoir Computing and Echo State Network experimentation based on pyTorch. EchoTorch is the only Python module available to easily create Deep Reservoir Computing models.
https://nschaetti.github.io/echotorch.github.io/
GNU General Public License v3.0
441 stars 117 forks source link

I installed torch but got an error: No module named 'torch' #22

Closed Crrrln closed 2 years ago

Crrrln commented 2 years ago

I installed torch v1.7.0

pip show torch
Name: torch
Version: 1.7.0+cpu
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3
Location: c:\users\thinker\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages
Requires: typing-extensions, future, dataclasses, numpy
Required-by: torchvision, torchaudio

However, when I run

python mackey_glass_esn.py

I got the error

Traceback (most recent call last):
  File "mackey_glass_esn.py", line 24, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'

Any ideas on what to do?

Crrrln commented 2 years ago

I run version 0.2.1 and then solved the problem. However, when I use version 0.2.3, the problem still exists.