Coder Social home page Coder Social logo

Comments (4)

ibayer avatar ibayer commented on May 24, 2024

@colemast
You might miss the Python dev header. Would be sudo apt-get install build-essential python-dev python-setuptools on linux. I have pushed the OSX fixes to fastFM. I hope this helps to get more OSX user to try.

from fastfm.

colemast avatar colemast commented on May 24, 2024

Thanks for the pointer - it was that. I had the Python dev header installed but as I am using Anaconda the setup.py was looking in the wrong place. I added /Users/colemast/anaconda/envs/fastfm/include/ into the include_dirs and it is all working now so I have a fully functioning OS X version.

Thanks so much for your work on this. I have used libFM for a while now, but to have it in my Python toolkit is awesome.

I'm happy to try and write up what I had to do to get this to work on OS X if you think that would be useful.

from fastfm.

ibayer avatar ibayer commented on May 24, 2024

@colemast
Sure, it would be great if you could improve the README. Just fork & edit or post you changes here. The missing Python dev headers effects all OS's and should probably be added in the build instructions.

from fastfm.

chunguo avatar chunguo commented on May 24, 2024

I'm having the same issue with cblas.h. I've tried adding the directory where it is located to the include_dirs section in the setup.py. But the compiler still complains that it cannot find cblas.h. Did I add it to the wrong place?

This is an exerpt from my modified setup.py:

ext_modules = [ Extension('ffm', ['fastFM/ffm.pyx'], libraries=['m', 'fastfm', 'cxsparse', 'blas'], library_dirs=['fastFM/', 'fastFM-core/bin/', 'fastFM-core/externals/CXSparse/Lib/'], include_dirs=['fastFM/', 'fastFM-core/include/', 'fastFM-core/externals/CXSparse/Include/', '/opt/pagerank/recommendation/anaconda2/include/', numpy.get_include()])]

from fastfm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.