使用intellj在python窗口10中导入mxnet

2024-09-27 22:29:22 发布

您现在位置:Python中文网/ 问答频道 /正文

当我在intellij(python)中使用import mxnet as mx时,compier会生成错误

OSError: [WinError 126] The specified module could not be found"

并播放trackcall节目

line 1 "import mxnet as mx" in test.python mxnet already in env/lib


Tags: theinimportas错误notmxnetcould
1条回答
网友
1楼 · 发布于 2024-09-27 22:29:22

您可能有PyCharm配置问题,所以我建议您首先从命令行检查。打开命令提示符并使用\path\to\env\Scripts\activate激活虚拟环境。通过列出带有pip list的pip包并查找mxnet,确认MXNet已安装在此环境中。如果在已安装的软件包列表中没有看到它,请使用pip install mxnet。现在用python运行一个Python解释器并尝试import mxnet。在

如果这样可以,那么现在需要确保PyCharm使用的Python环境正确,因为系统上可能安装了多个环境。和指令可以找到here。在

相关问题 更多 >

    热门问题