使用python将numpy导入c ++应用程序 [英] Import numpy into c++ application using python

查看:149
本文介绍了使用python将numpy导入c ++应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个用c ++解析netCDF4文件的应用程序,我在python脚本中解析文件没有问题,但是当我运行我的C ++程序时,它抱怨它不知道numpy。我通过复制我的c ++可执行文件所在的netCDF4.pyd文件修复了与netCDF4相同的问题,但是找不到numpy等价物。感谢您的任何建议。

I am trying to build an application to parse netCDF4 files in c++, I have no problem parsing the files in python scripts, but when I run my C++ program it complains that it doesnt know about numpy. I fixed the same issue with the netCDF4 by copying the netCDF4.pyd file where my c++ executable was located, but cannot find the numpy equivalent. Thanks for any suggestions.

推荐答案

维基百科中可以读到它有一个C ++接口。



所以我用Google搜索netcdf-C++





提示:研究实例
in the wikipedia I can read that it has a C++ interface.

So I googled netcdf-C++
.

Tip: study the examples


这篇关于使用python将numpy导入c ++应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆