Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Crrrln opened this issue Oct 9, 2021 · 1 comment
Closed

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

Crrrln opened this issue Oct 9, 2021 · 1 comment

Comments

@Crrrln
Copy link

Crrrln commented Oct 9, 2021

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 Crrrln closed this as completed Oct 10, 2021
@Crrrln
Copy link
Author

Crrrln commented Oct 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant