为什么我不能导入手电筒窗口

克马穆

我安装了 python 3.8.0, numpy 1.22.3, pytorch 1.11.0 。我试过这个代码:import torch但我收到了这个错误:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.8 from "C:\anaconda3\python.exe"
  * The NumPy version is: "1.20.1"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: DLL load failed while importing _multiarray_umath: 

During handling of the above exception, another exception occurred:
...

我该怎么办?我是python的初学者,所以请帮助我!

通用电气

** 在 PyCharm Python 控制台中,您可以按 ctrl+alt+S 来访问 Project:pythonProject > Python Interpreter。在页面下方,您应该会看到一个 + 按钮来访问所有可用的软件包。请在这里搜索torch并安装它。现在试试:**

import torch

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章