pyFM
pyFM copied to clipboard
LINK : fatal error LNK1181: cannot open input file 'm.lib'
pip install in windows first required the"Visual C++ Build Tools" but now fails due to LINK : fatal error LNK1181: cannot open input file 'm.lib'
I have the same problem ,how do you solve it?
If possible can someone upload its wheel, like on http://www.lfd.uci.edu/~gohlke/pythonlibs
How to slove this Q?
Download the pyFM project After installing Visual C++ Build Tools, do the following: Remove the parameter : libraries=["m"] in the setup.py file and save it Run the setup.py using : python setup.py install
It worked for me.. hope it helps! :)
need more details @NehKulkarni
@tiancaipipi110 Please make sure that your setup.py file looks like this:
setup( maintainer='Corey Lynch', name='pyfm', packages=find_packages(), url='https://github.com/coreylynch/pyFM', cmdclass = {'build_ext': build_ext}, ext_modules = [Extension("pyfm_fast", ["pyfm_fast.pyx"], include_dirs=[numpy.get_include()])] )
We just need to remove the libraries=["m"] parameter from it. Hope this helps! :)
@NehKulkarni For people coming from different languages - would be good if you could add more details like - where to edit this file or what is the location of this file?
i still get the same problem even i don't have this line in my setup.py file