简体   繁体   中英

How to properly install LLVMLITE in windows 10?

I'm trying to install the llvmlite in my windows 10, so i'm following the step-by-step from the 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.

So, i already have everything, and when i try to install with the command python setup.py build , the following error occurs:

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

Searching a lot, i found that i should use the following command cmake -G "Visual Studio 14 2015" , but that's returning:

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.

I help would be very much appreciated.

i use windows 10, python 2 & python 3 and regularly use the link provided by @roganjosh to download & install pre-compiled binaries. i have just repeated this for a clean install, and yes, it works perfectly for llvmlite. for numba too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM