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

I want to install the pyvlfeat package . This 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 the file included in 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 that Boost.Python is not installed correctly on my computer or that I am not running the command to install python correctly.

The INSTALL package contains instructions:

Create a module on Unix system -
    In C ++ wrappers, Boost.Python needs 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 cannot sudo apt-get, so I downloaded boost 1.57.0 and extracted it into

C: \ Program Files \ boost \ boost_1_57_0

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

When I read the documentation

  • Section 3: "Quick Beginnings Without Installation" explains how to create an extension called "renewal" and test it by running a Python script called test_extending.py. I don't think this is what I want to achieve and it seems outdated because it is talking about the bjam build driver.

  • Section 4: "Installing Boost.Python on Your System" looks more interesting, but it says the information is in the getting started guide, which it isn't.

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

+3


source to share


1 answer


I am looking at the setup.py file. It looks like you can install BOOST_PATH

at the top. I think you should set this to the correct path to your Boost download.



+1


source







All Articles