Closed alien35 closed 5 years ago
You maybe need find the path for the numpy/arrayobject.h
...
I'm using windows, so inside my C:\Python27\Lib\distutils
I use the file distutils.cfg
to tell what is my compiler and where are all my includes:
In linux the idstutils.cfg
can be create in/usr/lib/python2.7/distutils/
distutils.cfg:
[build]
compiler=mingw32
[build_ext]
include_dirs= C:\Python27\Lib\site-packages\numpy\core\include
in linux this can be:
include_dirs=/usr/local/lib/python2.7/site-packages/numpy/core/include
or
include_dirs=/usr/lib/python2.7/site-packages/numpy/core/include
My Python version is:
C:\Python27>python
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win
32
My Numpy Version
C:\Python27>python -c "import numpy; print(numpy.__version__)"
1.6.2
export CFLAGS="-I /usr/local/lib/python2.7/site-packages/numpy/core/include $CFLAGS"
running
python setup.py install
returns the following error:numpy version: 1.15 python: 2.7.8 c compiler: Can run
make
orgcc
without a problem