简体   繁体   中英

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 . I am on Windows 7 32-bit.

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. 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:

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:

potential issue + answer

potential issue + answer

Ming32 - gcc compatible compiler for Windows

Using Microsoft Visual Studio Express

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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