0

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

  • You should first try to follow the installation guide on the page step by step. If you have problem with a particular step, like WTF is easy_install and how to get it work on WIN 7?, post here and stackoverflow will answer ;) – zoli2k Apr 10 '10 at 05:47
  • Fair enough. I downloaded James Hetland's wrapper at the bottom of the page and put it in the directory I have my other external Python modules in. I ran the setup.py file but I still can not import the scikits.ann package successfully. It doesn't recognize it. Has anyone actually successfully installed this in windows? Thanks! – Eugene Kogan Apr 10 '10 at 06:06
  • Any errors warnings during installation? Do you have multiple Python installations on the system? – zoli2k Apr 10 '10 at 06:22
  • No I don't think so. Does anyone have experience with Rob Hetland's wrapper? I think that one must be the easiest. – Eugene Kogan Apr 10 '10 at 07:09

1 Answers1

0

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

Community
  • 1
  • 1
chisaipete
  • 884
  • 9
  • 20