anaconda创建了虚拟python环境,且安装了pytorch,但是pycharm中import torch运行时报错
点击Edit Configurations->Environment variables->文件图标->输入conda配置的Python环境路径C:\Users\tashi\.conda\envs\test1\Library\bin。Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。定位发现,是因为新创建的虚拟python环境的路径()没有加到pycharm环境变量中。
原创
2024-04-13 22:06:38 ·
1081 阅读 ·
2 评论