LNK1181:cannot open input file "m.lib"

python setup.py install 安装模块时出现LNK1181:cannot open input file "m.lib"
图片说明
使用setup.py安装https://github.com/coreylynch/pyFM上第三方模块时出的问题,求大神解答一下。。

修改setup.py,在其中找到library_dirs,将·m.lib所在的路径添加到其中。在library中添加m,将m.lib添加到依赖项中。

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.

去掉数学库的包含: libraries=[], 也可以编译通过。
(root) C:\Users\xx\AppData\Local\Temp\pip-9os3zp9u-build>python setup.py build_ext --inplace
图片说明
图片说明

这个是在windows visual studio 下。

安装的包依赖的m.lib没有找到,这个lib需要先编译生成

在setup.py中没有找到在setup.py中没有找到libraries=["m"] ,不确定问题出自哪里