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

alexandrekow

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 ? ?

James Elegan

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.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How to install subprocess module for python?

来自分类Dev

Python 2.7.8不会创建Scripts目录,并且在Windows 7上没有easy_install

来自分类Dev

在Windows 7上安装Scrapy-Python和Easy_install

来自分类Dev

'pip install <package>'和'python -m pip install <package>'有什么区别?

来自分类Dev

How to package and install Windows 10 application on other computers

来自分类Dev

How to find or install themes tkinter ttk for Python

来自分类Dev

npm install -g generator-jhipster Windows问题与python

来自分类Dev

python pip install在Windows上不起作用

来自分类Dev

在Windows 7上npm install restify错误?

来自分类Dev

How to install pyYAML on windows 10

来自分类Dev

如何在Windows 7上安装Boost.Python以便安装python包?

来自分类Dev

如何在Windows 7上安装Boost.Python以便安装python包?

来自分类Dev

python install package作为另一个软件包的子软件包

来自分类Dev

python install package作为另一个软件包的子软件包

来自分类Dev

Code to install a printer driver works on Windows 7 but not Windows 8

来自分类Dev

Color shemes in webstorm 7 - how to install?

来自分类Dev

ACTION_INSTALL_PACKAGE

来自分类Dev

Is it possible to upgrade a portable Python 32 bit install to a 64 bit install?

来自分类Dev

apt-get install python-xxx与pip install

来自分类Dev

python setup.py install忽略install_requires

来自分类Dev

apt-get install python-xxx与pip install

来自分类常见问题

How to pip or easy_install tkinter on Windows

来自分类Dev

How to install oct2py on windows?

来自分类Dev

Python:Windows 10上的“ pip install gmpy”返回“ cl.exe'失败,退出状态为2”

来自分类Dev

如何在Windows上安装.egg Python软件包(尝试使用easy_install无效)

来自分类Dev

conda install -c conda-forge python-pdal 解决环境:| 运行 Windows 10 时挂起

来自分类Dev

How can i install twilio package via pip?

来自分类Dev

Brew fails to install Python: can not symlink

来自分类Dev

install_requires based on python version

Related 相关文章

  1. 1

    How to install subprocess module for python?

  2. 2

    Python 2.7.8不会创建Scripts目录,并且在Windows 7上没有easy_install

  3. 3

    在Windows 7上安装Scrapy-Python和Easy_install

  4. 4

    'pip install <package>'和'python -m pip install <package>'有什么区别?

  5. 5

    How to package and install Windows 10 application on other computers

  6. 6

    How to find or install themes tkinter ttk for Python

  7. 7

    npm install -g generator-jhipster Windows问题与python

  8. 8

    python pip install在Windows上不起作用

  9. 9

    在Windows 7上npm install restify错误?

  10. 10

    How to install pyYAML on windows 10

  11. 11

    如何在Windows 7上安装Boost.Python以便安装python包?

  12. 12

    如何在Windows 7上安装Boost.Python以便安装python包?

  13. 13

    python install package作为另一个软件包的子软件包

  14. 14

    python install package作为另一个软件包的子软件包

  15. 15

    Code to install a printer driver works on Windows 7 but not Windows 8

  16. 16

    Color shemes in webstorm 7 - how to install?

  17. 17

    ACTION_INSTALL_PACKAGE

  18. 18

    Is it possible to upgrade a portable Python 32 bit install to a 64 bit install?

  19. 19

    apt-get install python-xxx与pip install

  20. 20

    python setup.py install忽略install_requires

  21. 21

    apt-get install python-xxx与pip install

  22. 22

    How to pip or easy_install tkinter on Windows

  23. 23

    How to install oct2py on windows?

  24. 24

    Python:Windows 10上的“ pip install gmpy”返回“ cl.exe'失败,退出状态为2”

  25. 25

    如何在Windows上安装.egg Python软件包(尝试使用easy_install无效)

  26. 26

    conda install -c conda-forge python-pdal 解决环境:| 运行 Windows 10 时挂起

  27. 27

    How can i install twilio package via pip?

  28. 28

    Brew fails to install Python: can not symlink

  29. 29

    install_requires based on python version

热门标签

归档