Numpy 1.11 version gives error during 'make' of graph-tool

I removed the Python 1.60 which comes by default while doing _sudo apt-get install python-numpy_ and installed Python 1.11.1 from Sourceforge and then tried to do _make_ for graph-tool. Getting the following error

Commands used (in graph tool directory)

attachment.html (2.36 KB)

*The version was 1.60

Surely you mean version 1.6, not 1.60. But as stated in the website, the
minimum required Numpy version is 1.7.

*I installed the numpy using command line

sudo apt-get install python-numpy

This suggest that you are using a Debian based distribution. If this is
either Ubuntu or Debian itself, I suggest you use the pre-compiled
packages in the website, since they are easier to install than
compilation by hand.

In any case, even after I explicitly asked, you haven't yet given any
precise information about your system, which makes troubleshooting
difficult.

I removed the Python 1.60 which comes by default while doing _sudo
apt-get install python-numpy_ and installed Python 1.11.1 from
Sourceforge and then tried to do _make_ for graph-tool. Getting the
following error

Surely you mean Numpy, not 'Python'.

In any case the error below:

./../numpy_bind.hh:30:31: fatal error: numpy/arrayobject.h: No such file or directory

obviously means that you haven't passed the path of your numpy
installation to ./configure, or that you haven't installed numpy
correctly.

As I said before, in order for us to be able to help you, you need to
give us more information. We need to know, for instance, how you
installed numpy, what is the full output of the configure script, what
are the contents of the config.log file, etc.

Rest assured that none of the issues you are encountering are problems
with graph-tool itself. You just need to install its dependencies
properly.

If you are uncomfortable with learning how to do this, I would like to
recommend again the binary packages. That's why they exist.

Best,
Tiago

minimum required Numpy version is 1.7

Now I have installed version 1.7.1 from sourceforge.
Downloaded the .tar.gz file from folder extracted it and installed the
package using the command: python setup.py install
Verified the version in Python using: import numpy; numpy.version.version

The path where numpy was installed is obtained using the command
'numpy.version' in Python console which gave the following output
<module 'numpy.version' from
'/usr/local/lib/python2.7/dist-packages/numpy/version.pyc'>

you haven't yet given any
precise information about your system

OS type: 64-bit, Ubuntu 12.04 (precise)
Memory: 15.6 GiB
Processor: Intel® Xeon(R) CPU E5-2620 0 @ 2.00GHz × 12
Graphics: VESA: MGA-G200
Disk: 235 GB

obviously means that you haven't passed the path of your numpy
installation to ./configure

Used the following configure command (including the path to numpy obtained
from the previous step
./configure CPPFLAGS="-I/usr/include/python2.7"

After that I executed 'make' which gives the following error

./configure CPPFLAGS="-I/usr/include/python2.7"

That was a mistake. The command used was
./configure CPPFLAGS="-I/usr/local/lib/python2.7"

minimum required Numpy version is 1.7

Now I have installed version 1.7.1 from sourceforge.
Downloaded the .tar.gz file from folder extracted it and installed the
package using the command: python setup.py install
Verified the version in Python using: import numpy; numpy.version.version

You don't need to install this particular version. This is only the
_minimum_ version. Version 1.11 will work just fine.

OS type: 64-bit, Ubuntu 12.04 (precise)

This is fairly outdated. Even if you fix the numpy problem, you probably
will run in other problems with Ubuntu 12.04. By far the simplest
approach would be to upgrade to a more recent Ubuntu version and use the
Ubuntu packages available for graph-tool.

Used the following configure command (including the path to numpy obtained
from the previous step
./configure CPPFLAGS="-I/usr/include/python2.7"

That was a mistake. The command used was
./configure CPPFLAGS="-I/usr/local/lib/python2.7"

Both are incorrect. In fact, it should not be necessary to pass
anything if numpy was properly installed. Please post the output of:

    import numpy
    print numpy.get_include()

when run from the Python interpreter.

Also, please post the _full_ output of the ./configure command as well
as the entire content of the config.log file.

Best,
Tiago