首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Windows10中正确安装LLVMLITE?

如何在Windows10中正确安装LLVMLITE?
EN

Stack Overflow用户
提问于 2017-02-08 01:19:03
回答 1查看 1.9K关注 0票数 2

我正在尝试在我的Windows10中安装llvmlite,所以我正在按照documentation中的步骤操作。

代码语言:javascript
复制
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进行安装时,出现了以下错误:

代码语言:javascript
复制
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",但它返回了:

代码语言:javascript
复制
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.

我会非常感谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2019-03-14 02:59:31

我使用windows10,python2和python3,并经常使用@roganjosh提供的链接来下载和安装预编译的二进制文件。我刚刚为了一个干净的安装重复了这一点,是的,它在llvmlite上工作得很好。对numba也是如此。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42096054

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档