4

I am new to Python and I want to install VLFeat on Ubuntu (13.04).

I am using Eclipse 3.8. For Python, I have installed the PyDev extension on Eclipse.

I have installed Numpy, but I don't know how to install VLFeat. I tried to use their website, but I can't get anything for Python. I have downloaded packages, but I don't know how to install them.

iled
  • 2,142
  • 3
  • 31
  • 43
user3014479
  • 61
  • 1
  • 2

2 Answers2

5

The Menpo Project provides a wrapper around VLFeat: it's called cyvlfeat.

To install cyvlfeat, we strongly suggest you use conda:

conda install -c menlo cyvlfeat

If you don't want to use conda, your mileage will vary. In particular, you must satisfy the linking/compilation requirements for the package, which include the vlfeat dynamic library.

In other words, the nice thing about installing with conda is that it will install (and link) VLFeat dependencies as well.

It may not include all functionalities of VLFeat. Current State as of March 2017:

  • fisher
    • fisher
  • generic
    • set_simd_enabled, get_simd_enabled, cpu_has_avx, cpu_has_sse3, cpu_has_sse2
    • get_num_cpus,
    • get_max_threads, set_num_threads, get_thread_limit
  • hog
    • hog
  • kmeans
    • kmeans
    • kmeans_quantize
    • ikmeans, ikmeans_push
    • hikmeans, hikmeans_push
  • sift
    • dsift
    • sift

Relevant reading

Dev blog by Simmi Mourya. This includes descriptions and usage examples.


More alternatives:


Note about the IDE

Installing python packages should be independent of the IDE (Eclipse + PyDev, in the OP case), as long as the interpreter and libraries paths are correctly set up.

Note about conda

It is not required to install the Anaconda distribution in order to use conda. The much lighter Miniconda is enough.

iled
  • 2,142
  • 3
  • 31
  • 43
0

Assuming you are getting VLFeat from the Python Package Index, the instructions are

Download distribution, extract it, get to command prompt and type: 
$ python setup.py install 
Bull
  • 11,771
  • 9
  • 42
  • 53
  • 1
    I tried it but it started installation and then gave the following error /usr/bin/ld: cannot find -lboost_python-mt-py26 collect2: error: ld returned 1 exit status error: command 'c++' failed with exit status 1 – user3014479 Nov 23 '13 at 17:28
  • user30133479, open setup.py and modify the line LinkArgs = ['-msse', '-shared', '-lboost_python-py26'] to point to your libboost-python version (in my case I had to change it to LinkArgs = ['-msse', '-shared', '-lboost_python-py27'] ). – Miquel Mar 07 '14 at 17:27