C++中嵌入的Python:导入恐怖输入numpy.core.multiarray

2024-04-20 15:23:58 发布

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

我正在VisualStudio 2017中开发一个C++程序,它应该调用Python脚本。在python文件中,从numpy导入时,可以调用numpy主.cpp我知道错误了

Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

我使用的是python3.6、numpy1.12.0和building主.cpp在x64调试模式下。我也在用Cmake来构建。

我找了很多,但找不到有效的解决办法。


Tags: 文件thegit程序numpy脚本you错误