0

我正在使用 Windows 10 并在 Anaconda 上运行 Jupyter Notebook。起初我想在 Anaconda 上安装 Turi Create,但没有成功。然后我开始使用 Ubuntu 通过 WSL 安装 Turi Create。但是在运行命令$pip install turicreate后,我收到以下错误: 错误:llvmlite 构建轮子失败

我的python版本是3.6.9

下面给出了完整的错误回溯

错误:命令出错,退出状态为 1:命令:/home/rishad/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"'; file ='"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)( file ) ;code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(代码,文件,'"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-VYksx0 cwd:

回溯(最后一次调用):文件“/tmp/pip-install-D6ZY7E/llvmlite/ffi/bu​​ild.py”,第 168 行,在 main() 文件“/tmp/pip-install-D6ZY7E/llvmlite/ffi/ build.py”,第 158 行,在 main_posix('linux', '.so') 文件“/tmp/pip-install-D6ZY7E/llvmlite/ffi/bu​​ild.py”,第 120 行,在 main_posix 中引发 RuntimeError(msg ) RuntimeError:构建 llvmlite 需要 LLVM 7.0.x、7.1.x 或 8.0.x,得到 u'6.0.0'。请务必将 LLVM_CONFIG 设置为正确的可执行路径。阅读 http://llvmlite.pydata.org/上的文档以获取有关构建 llvmlite 的更多信息。

错误:命令 '/home/rishad/venv/bin/python' 失败,退出状态为 1 ------------------------------ ---------- 错误:llvmlite 的构建轮失败

然后下一个错误

为 llvmlite 运行 setup.py install ... 错误错误:命令出错,退出状态为 1:命令:/home/rishad/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"'; file ='"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)( file ) ;code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(代码,文件, '"'"'exec'"'"'))' 安装 --record /tmp/pip-record-Tv5u1Z/install-record.txt --single-version-externally-managed --compile --install-headers /home/rishad/venv/include/site/python2.7/llvmlite cwd: /tmp/pip-install-D6ZY7E/llvmlite/ 完整输出(18 行):运行安装运行构建从文件 /tmp/pip-install 获取版本-D6ZY7E/llvmlite/llvmlite/_version.py {'version': '0.32.0', 'full': '26059d238f4ba23dff74703dd27168591d889edd'} 运行 build_ext /home/rishad/venv/bin/python /tmp/pip-install-D6ZY7E/ llvmlite/ffi/bu​​ild.py LLVM 版本... 6.0.0

Traceback (most recent call last):
  File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 168, in <module>
    main()
  File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 158, in main
    main_posix('linux', '.so')
  File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 120, in main_posix
    raise RuntimeError(msg)
RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got u'6.0.0'. Be sure to set LLVM_CONFIG to the right executable path.
Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.

error: command '/home/rishad/venv/bin/python' failed with exit status 1
---------------------------------------- ERROR: Command errored out with exit status 1: /home/rishad/venv/bin/python -u -c 'import

sys、setuptools、tokenize;sys.argv[0] = '"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"'; file ='"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)( file ) ;code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(代码,文件,'"'"'exec'"'"'))' 安装 --record /tmp/pip-record-Tv5u1Z/install-record.txt --single-version-externally-managed --compile --安装头文件 /home/rishad/venv/include/site/python2.

4

0 回答 0