3
votes

I want to install the pyvlfeat package. It requires Boost.Python.

When I run the command

 python.exe setup.py build

I receive the following message:

C:\Users\alex\Anaconda\Scripts\gcc.bat -DMS_WIN64 -mdll -O -Wall -IC:\Users\A lexkow\AppData\Roaming\Python\Python27\site-packages\numpy\core\include -Ivlfeat / -IC:\Users\alex\Anaconda\include -IC:\Users\alex\Anaconda\PC -c vlfeat/m ser/vl_erfill.cpp -o build\temp.win-amd64-2.7\Release\vlfeat\mser\vl_erfill.o -m sse2 -O2 -fPIC -w In file included from vlfeat/mser/vl_erfill.cpp:7:0: vlfeat/mser/../py_vlfeat.h:18:28: fatal error: boost/python.hpp: No such file or directory

Which tells me Boost.Python is not installed correctly on my computer, or that I don't launch the python install command correctly.

The package INSTALL instructions are :

Building the Module on a Unix System --
The C++ wrappers require Boost.Python to be installed:

$ sudo apt-get install boost-python1.35-dev

pyvlfeat uses distutils, so to build the library:

$ python setup.py build

As I am on Windows I can't sudo apt-get, so I downloaded boost 1.57.0 and extracted it into

C:\Program Files\boost\boost_1_57_0

It did not change the result. And now I don't know what I should do:

When I read the documentation

  • The section 3: "No-Install Quick Start" explains how to build an extension module called extending and test it by running a Python script called test_extending.py. I don't think that is what I want to achieve and it seems outdated because it talks about the bjam build driver.

  • The section 4: "Installing Boost.Python on your system" looks more interresting, but it says the information is in the Getting Started Guide, and it is not.

How to install Boost.Python on Windows 7 in order to install a python package ? ?

1

1 Answers

1
votes

I am looking at the setup.py file. It looks like you can set BOOST_PATH at the top. You should set that to the correct path to the Boost you downloaded, I think.