pyFM icon indicating copy to clipboard operation
pyFM copied to clipboard

LINK : fatal error LNK1181: cannot open input file 'm.lib'

Open hshteingart opened this issue 8 years ago • 8 comments

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'

hshteingart avatar Sep 15 '16 17:09 hshteingart

I have the same problem ,how do you solve it?

huaxiaohua avatar Dec 07 '16 12:12 huaxiaohua

If possible can someone upload its wheel, like on http://www.lfd.uci.edu/~gohlke/pythonlibs

arjunbahl avatar May 29 '17 11:05 arjunbahl

How to slove this Q?

Darinyazanr avatar Aug 18 '17 08:08 Darinyazanr

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! :)

NehKulkarni avatar Nov 06 '17 07:11 NehKulkarni

need more details @NehKulkarni

tiancaipipi110 avatar May 21 '18 03:05 tiancaipipi110

@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 avatar May 21 '18 08:05 NehKulkarni

@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?

mustkem avatar Jan 19 '22 17:01 mustkem

i still get the same problem even i don't have this line in my setup.py file

omarbo4k4 avatar May 02 '23 15:05 omarbo4k4