使用python安装,pip install falconn时,cl.exe failed with exit code 2

已经下载了Visual Studio2015、Visual Studio2019、Visual C++ build tools,并且也没有找到falconn包对应的whl文件。从github上下载了falconn的压缩包,使用pip install falconn时报错,具体报错如下:


Collecting falconn
  Using cached FALCONN-1.3.1.tar.gz (1.4 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: falconn
  Building wheel for falconn (setup.py): started
  Building wheel for falconn (setup.py): finished with status 'error'
  Running setup.py clean for falconn
Failed to build falconn
Installing collected packages: falconn
    Running setup.py install for falconn: started
    Running setup.py install for falconn: finished with status 'error'
Note: you may need to restart the kernel to use updated packages.
  ERROR: Command errored out with exit status 1:
   command: 'D:\python\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-k8ngwoqh\\falconn_567b88b77e884058b4e3c7bc58b4db52\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-k8ngwoqh\\falconn_567b88b77e884058b4e3c7bc58b4db52\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Administrator\AppData\Local\Temp\pip-wheel-q15dhqwh'
       cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-k8ngwoqh\falconn_567b88b77e884058b4e3c7bc58b4db52\
  Complete output (488 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.8
  creating build\lib.win-amd64-3.8\falconn
  copying falconn\__init__.py -> build\lib.win-amd64-3.8\falconn
  running egg_info
  writing manifest file 'FALCONN.egg-info\SOURCES.txt'
  running build_ext
  creating build\temp.win-amd64-3.8
  creating build\temp.win-amd64-3.8\Release
  creating build\temp.win-amd64-3.8\Release\internal
  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinclude -Iexternal/eigen -Iexternal/pybind11/include -ID:\python\include -ID:\python\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" /EHsc /Tpinternal/python_wrapper.cc /Fobuild\temp.win-amd64-3.8\Release\internal/python_wrapper.obj -std=c++11 -march=native -O3
  cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
  cl : Command line warning D9002 : ignoring unknown option '-march=native'
  cl : Command line warning D9002 : ignoring unknown option '-O3'
省略一部分
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for falconn
    ERROR: Command errored out with exit status 1:
   
   中间太长,省略
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\python\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-k8ngwoqh\\falconn_567b88b77e884058b4e3c7bc58b4db52\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-k8ngwoqh\\falconn_567b88b77e884058b4e3c7bc58b4db52\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\pip-record-6tkn3cbs\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\python\Include\falconn' Check the logs for full command output.