【发布时间】:2023-01-07 03:12:05
【问题描述】:
我正在尝试在 jupyter notebook python 文件中导入 torch 并收到此错误:
ModuleNotFoundError: No module named 'torch'
我也将它安装在创建的环境中:
(pytorch_project) C:\Users\user>python
Python 3.7.15 (default, Nov 24 2022, 18:44:54) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>>
我怎样才能让它在 jupyter notebook 中也能工作?
【问题讨论】:
标签: jupyter-notebook pytorch anaconda