numpy/arrayobject.h”: No such file or directory
来源:互联网 发布:一般约束的最优化问题 编辑:程序博客网 时间:2024/06/18 18:28
numpy/arrayobject.h”: No such file or directory
In your setup.py
, the Extension
should have the argument include_dirs=[numpy.get_include()]
.
Also, you are missing np.import_array()
in your code.
--
Example setup.py:
from distutils.core import setup, Extensionfrom Cython.Build import cythonizeimport numpysetup( ext_modules=[ Extension("my_module", ["my_module.c"], include_dirs=[numpy.get_include()]), ],)# Or, if you use cythonize() to make the ext_modules list,# include_dirs can be passed to setup()setup( ext_modules=cythonize("my_module.pyx"), include_dirs=[numpy.get_include()])
In your setup.py
, the Extension
should have the argument include_dirs=[numpy.get_include()]
.
Also, you are missing np.import_array()
in your code.
--
Example setup.py:
from distutils.core import setup, Extensionfrom Cython.Build import cythonizeimport numpysetup( ext_modules=[ Extension("my_module", ["my_module.c"], include_dirs=[numpy.get_include()]), ],)# Or, if you use cythonize() to make the ext_modules list,# include_dirs can be passed to setup()setup( ext_modules=cythonize("my_module.pyx"), include_dirs=[numpy.get_include()])
阅读全文
0 0
- numpy/arrayobject.h”: No such file or directory
- python/caffe/_caffe.cpp:10:31: fatal error: numpy/arrayobject.h: No such file or directory
- python/caffe/_caffe.cpp:10:31: fatal error: numpy/arrayobject.h: No such file or directory
- python/caffe/_caffe.cpp:10:31: fatal error: numpy/arrayobject.h: No such file or directory
- nspr.h: No such file or directory
- stdio.h: No such file or directory
- “fstream.h”: No such file or directory
- dxtrans.h": No such file or directory
- dxtrans.h": No such file or directory
- Python.h:No such file or directory
- crtdbg.h: No such file or directory
- sk_stdint.h: No such file or directory
- Python.h: No such file or directory
- Python.h: No such file or directory
- qvbox.h”: No such file or directory
- Python.h:No such file or directory
- qvbox.h”: No such file or directory
- Python.h:No such file or directory
- 12月21日 数据结构 周四
- JAVA的XML解析
- 使用脚本记录 macbook 电池容量
- c基础01
- Android系统下C语言hello world
- numpy/arrayobject.h”: No such file or directory
- serialVersionUID的作用
- CentOS 6 python2.7 virtualenv 环境搭建
- 在Ubuntu系统、GPU模式下运行Fast R-cnn代码
- Codeforces Round #452 (Div. 2)
- LC- Island Perimeter
- IT行业风险投资
- 学习笔记13
- MySQL基础教程14-Mysql插入中文数据报错的原因和解决办法