我正在尝试在我的Windows10中安装llvmlite,所以我正在按照documentation中的步骤操作。
You must have Visual Studio 2013 or later (the free “Express” edition is ok) in order to compile LLVM and llvmlite.
In addition, you must have cmake installed, and LLVM should have been built using cmake, in Release mode. Be
careful to use the right bitness (32- or 64-bit) for your Python installation.因此,我已经拥有了所有内容,当我尝试使用命令python setup.py build进行安装时,出现了以下错误:
Trying generator 'Visual Studio 12 2013'
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "C:/Users/G1745 IRON/AppData/Local/Temp/tmpvzyvoz/CMakeFiles/CMakeOutput.log".
See also "C:/Users/G1745 IRON/AppData/Local/Temp/tmpvzyvoz/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\llvmlite\ffi\build.py", line 152, in <module>
main()
File "C:\Python27\Lib\site-packages\llvmlite\ffi\build.py", line 140, in main
main_win32()
File "C:\Python27\Lib\site-packages\llvmlite\ffi\build.py", line 74, in main_win32
generator = find_win32_generator()
File "C:\Python27\Lib\site-packages\llvmlite\ffi\build.py", line 70, in find_win32_generator
raise RuntimeError("No compatible cmake generator installed on this machine")
RuntimeError: No compatible cmake generator installed on this machine
error: command 'C:\\Python27\\python.exe' failed with exit status 1搜索了很多次,我发现我应该使用下面的命令cmake -G "Visual Studio 14 2015",但它返回了:
CMake Error: The source directory "C:/Python27/Lib/site-packages/llvmlite" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.我会非常感谢你的帮助。
发布于 2019-03-14 02:59:31
我使用windows10,python2和python3,并经常使用@roganjosh提供的链接来下载和安装预编译的二进制文件。我刚刚为了一个干净的安装重复了这一点,是的,它在llvmlite上工作得很好。对numba也是如此。
https://stackoverflow.com/questions/42096054
复制相似问题