计算光流
conda create -n 3dgesture python=3.8
conda activate 3dgesture
?pip install torch
1. import torch时报错ModuleNotFoundError: No module named 'torch'
? ? ?在成功安装完pytorch后打开pycharm时import torch时会报错“ModuleNotFoundError: No module named 'torch'
一、打开文件的setting选项
二、找到python interpreter选项,点击Add Interpreter
?三、如图所示添加编译器 点击add 选择Conda Environment 选择Python=3.8
?四、一直点OK,完成配置。重启pycharm再运行import torch
?