2024-09-27 22:29:22 发布
网友
当我在intellij(python)中使用import mxnet as mx时,compier会生成错误
import mxnet as mx
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
您可能有PyCharm配置问题,所以我建议您首先从命令行检查。打开命令提示符并使用\path\to\env\Scripts\activate激活虚拟环境。通过列出带有pip list的pip包并查找mxnet,确认MXNet已安装在此环境中。如果在已安装的软件包列表中没有看到它,请使用pip install mxnet。现在用python运行一个Python解释器并尝试import mxnet。在
\path\to\env\Scripts\activate
pip list
mxnet
pip install mxnet
python
import mxnet
如果这样可以,那么现在需要确保PyCharm使用的Python环境正确,因为系统上可能安装了多个环境。和指令可以找到here。在
您可能有PyCharm配置问题,所以我建议您首先从命令行检查。打开命令提示符并使用
\path\to\env\Scripts\activate
激活虚拟环境。通过列出带有pip list
的pip包并查找mxnet
,确认MXNet已安装在此环境中。如果在已安装的软件包列表中没有看到它,请使用pip install mxnet
。现在用python
运行一个Python解释器并尝试import mxnet
。在如果这样可以,那么现在需要确保PyCharm使用的Python环境正确,因为系统上可能安装了多个环境。和指令可以找到here。在
相关问题 更多 >
编程相关推荐