简体   繁体   English

为C ++库安装python包装器

[英]Installing a python wrapper for a c++ library

I am trying to install the python wrapper for the ANN (approx near neighbors) c++ library: link is http://www.scipy.org/scipy/scikits/wiki/AnnWrapper . 我正在尝试为ANN(大约在邻居附近)c ++库安装python包装器:链接为http://www.scipy.org/scipy/scikits/wiki/AnnWrapper I am on Windows 7 32-bit. 我使用的是Windows 7 32位。

Unfortunately the documentation is a bit terse and I am a newbie to programming in general, so I cannot decipher the instructions found within. 不幸的是,文档太简短了,我一般来说还是编程的新手,所以我无法解读其中的指令。 I have not built a C++ library before and am not even sure how to get that far. 我以前没有构建过C ++库,甚至不确定如何做到这一点。 Can anyone please guide? 有人可以指导吗?

Thanks! 谢谢!

gene 基因

To install Rob Hetland's wrapper you'll need to execute the following command (or one very similar depending on the C compiler installed on your system) in the directory that you've extracted the archive into: 要安装Rob Hetland的包装程序,您需要在将归档文件解压缩到的目录中执行以下命令(或一个非常类似的命令,具体取决于系统上安装的C编译器):

python setup.py build install

or 要么

python setup.py build install --compiler=mingw32

If you don't have a C compiler, or are getting errors, try looking here: 如果您没有C编译器,或者遇到错误,请尝试在此处查看:

potential issue + answer 潜在问题+答案

potential issue + answer 潜在问题+答案

Ming32 - gcc compatible compiler for Windows Ming32-适用于Windows的gcc兼容编译器

Using Microsoft Visual Studio Express 使用Microsoft Visual Studio Express

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM