Comments (4)
@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.
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.
@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.
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)
- pip install . is not working on Winodws HOT 1
- Illegal instruction (core dumped) in ALS HOT 5
- Can fastfm use mini batch? HOT 1
- Check pairs range failed when fitting BPR
- OverflowError: n_iter too high in bpr.FMRecommender HOT 1
- Need partial_fit HOT 1
- Can fastfm use multicore to speed up training? HOT 1
- Fit complaining about both dense/sparse HOT 2
- Recompile for python 3.7 HOT 7
- Input of fit() and return value of predict_proba() method
- Failure to install on Python3.8 HOT 8
- Fix simple typo: reommend -> recommend
- Import Error
- Compiling using OpenBLAS from anaconda
- Source file type in PyPi
- No coordinate descent solver available HOT 1
- Compilation error on macOS 11.2 ARM HOT 3
- Any plan to support py3.7+? HOT 1
- will it work for third order categorical features interaction ?
- will it work on windows OS?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastfm.