1、Unable to find vcvarsall.bat
错误描述:
D:\Python27\lib\distutils\dist.py:267:UserWarning: Unknown distribution option:
'install_requires'
warnings.warn(msg)
running install
running build
running build_py
running build_ext
skipping 'jnius\jnius.c' Cython extension(up-to-date)
building 'jnius' extension
error: Unable to find vcvarsall.bat
解决方法:1、安装 VCForPython27.msi,官方下载:http://www.microsoft.com/en-us/download/details.aspx?id=44266
2、添加注册表信息,具体参考http://blog.csdn.net/donger_soft/article/details/44838109
2、fatal error LNK1181
warning LNK4044: unrecognized option'/Wl,-rpath'; ignored
fatal error LNK1181: cannot open input file'D:\Java\jdk1.7.0_80\lib.obj'
解决方法:找到 setup.py 97行 ,替换 extra_link_args = ['-Wl,-rpath', library_dirs[0]] 为 extra_link_args = ['/LIBDIR:%s' % library_dirs[0]]