installed pytorch but cannot import
zhifeishen99 opened this issue · 1 comments
I get this error - any fixes?
import torch
File "/home/pi/.local/lib/python3.7/site-packages/torch/init.py", line 524, in
from .functional import *
File "/home/pi/.local/lib/python3.7/site-packages/torch/functional.py", line 6, in
import torch.nn.functional as F
File "/home/pi/.local/lib/python3.7/site-packages/torch/nn/init.py", line 1, in
from .modules import *
File "/home/pi/.local/lib/python3.7/site-packages/torch/nn/modules/init.py", line 2, in
from .linear import Identity, Linear, Bilinear
File "/home/pi/.local/lib/python3.7/site-packages/torch/nn/modules/linear.py", line 6, in
from .. import functional as F
File "/home/pi/.local/lib/python3.7/site-packages/torch/nn/functional.py", line 12, in
from .._jit_internal import boolean_dispatch, List, Optional, _overload, Tuple
File "/home/pi/.local/lib/python3.7/site-packages/torch/_jit_internal.py", line 27, in
from typing_extensions import Final
ModuleNotFoundError: No module named 'typing_extensions'
Have you tried pip install typing-extensions
?