问题背景

pip install llvmlite报错:

Building wheels for collected packages: llvmliteBuilding wheel for llvmlite (setup.py) ... errorERROR: Command errored out with exit status 1:command: /home/zhanghm/.virtualenvs/python27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-M1772f/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-M1772f/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-Vve0nBcwd: /tmp/pip-install-M1772f/llvmlite/Complete output (11 lines):running bdist_wheel/home/zhanghm/.virtualenvs/python27/bin/python /tmp/pip-install-M1772f/llvmlite/ffi/build.pyLLVM version... Traceback (most recent call last):File "/tmp/pip-install-M1772f/llvmlite/ffi/build.py", line 168, in <module>main()File "/tmp/pip-install-M1772f/llvmlite/ffi/build.py", line 158, in mainmain_posix('linux', '.so')File "/tmp/pip-install-M1772f/llvmlite/ffi/build.py", line 109, in main_posix"to the path for llvm-config" % (llvm_config,))RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-configerror: command '/home/zhanghm/.virtualenvs/python27/bin/python' failed with exit status 1----------------------------------------ERROR: Failed building wheel for llvmliteRunning setup.py clean for llvmlite
Failed to build llvmlite
DEPRECATION: Could not build wheels for llvmlite which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: llvmliteRunning setup.py install for llvmlite ... errorERROR: Command errored out with exit status 1:command: /home/zhanghm/.virtualenvs/python27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-M1772f/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-M1772f/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-uAOG6M/install-record.txt --single-version-externally-managed --compile --install-headers /home/zhanghm/.virtualenvs/python27/include/site/python2.7/llvmlitecwd: /tmp/pip-install-M1772f/llvmlite/Complete output (14 lines):running installrunning buildgot version from file /tmp/pip-install-M1772f/llvmlite/llvmlite/_version.py {'version': '0.32.0', 'full': '26059d238f4ba23dff74703dd27168591d889edd'}running build_ext/home/zhanghm/.virtualenvs/python27/bin/python /tmp/pip-install-M1772f/llvmlite/ffi/build.pyLLVM version... Traceback (most recent call last):File "/tmp/pip-install-M1772f/llvmlite/ffi/build.py", line 168, in <module>main()File "/tmp/pip-install-M1772f/llvmlite/ffi/build.py", line 158, in mainmain_posix('linux', '.so')File "/tmp/pip-install-M1772f/llvmlite/ffi/build.py", line 109, in main_posix"to the path for llvm-config" % (llvm_config,))RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-configerror: command '/home/zhanghm/.virtualenvs/python27/bin/python' failed with exit status 1----------------------------------------
ERROR: Command errored out with exit status 1: /home/zhanghm/.virtualenvs/python27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-M1772f/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-M1772f/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-uAOG6M/install-record.txt --single-version-externally-managed --compile --install-headers /home/zhanghm/.virtualenvs/python27/include/site/python2.7/llvmlite Check the logs for full command output

解决方案

sudo apt-get install llvm-8
pip install numba==0.45.1 llvmlite==0.30.0

我最终是通过这个方法解决的,大家可以尝试下。

Python安装LLVMLite报错及解决方案相关推荐

  1. python bs4模块报错_Python3安装bs4报错及解决方案

    Python3安装bs4报错及解决方案 吐血分享!!! 学习网络爬虫的都知道,除了使用正则表达式以外,我们还会经常使用一种beautifulsoup的工具,这个工具很好的分析网页结构,使得更好的爬取, ...

  2. python安装报错类型_解决Python安装cryptography报错问题

    解决Python安装cryptography报错问题 错误一: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wst ...

  3. python 安装 pyinstaller 报错Preparing wheel metadata ... error

    python 安装 pyinstaller 报错Preparing wheel metadata ... error ERROR: Command errored out with exit stat ...

  4. Python3安装bs4报错及解决方案

    Python3安装bs4报错及解决方案 吐血分享!!! 学习网络爬虫的都知道,除了使用正则表达式以外,我们还会经常使用一种beautifulsoup的工具,这个工具很好的分析网页结构,使得更好的爬取, ...

  5. 【已解决】Python安装TensorFlow报错“Consider adding this directory to PATH or, if you prefer to suppress this

    [已解决]Python安装TensorFlow报错"Consider adding this directory to PATH or, if you prefer to suppress ...

  6. babel安装失败/报错详细解决方案报以下错误: core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended

    babel安装失败/报错详细解决方案 **问题:**在VSCode中执行命令 npm install --global babel-cli 报以下错误: core-js@2.6.12: core-js ...

  7. 在有office2016之后安装visio2016报错的解决方案

    在有office2016之后安装visio2016报错的解决方案 : 改成安装visio2013即可

  8. python 安装 psycopg2 报错问题处理

    今天在安装服务器环境时,使用Python  安装 psycopg2 报错如下 pip3 install psycopg2 Looking in indexes: http://mirrors.clou ...

  9. 安装llvmlite报错解决:RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for

    晚上在安装llvmlite时报错: zhang@debian:~$ pip3 install llvmlite==0.16.0 Collecting llvmlite==0.16.0Using cac ...

最新文章

  1. 智源学者文再文获北京市杰出青年中关村奖
  2. java的三种代理模式
  3. 安装Oralce时,系统参数详解
  4. 【 MATLAB 】DFS 和 DTFT 之间的关系
  5. Mapped Statements collection does not contain value for 之运行异常原因
  6. 【控制】《现代控制理论》谢克明老师-第4章-控制系统的稳定性
  7. 【Java从入门到头秃专栏 4】语法篇(三) :字符串 数组
  8. jstat查看JVM的GC情况
  9. 用友CDM系统,将货位间商品移库单(一步)修改为内调出入库单(一步)方法使用...
  10. 接口测试参数化详解(Jmeter)
  11. 深度学习之卷积自编码器
  12. 如何将本地项目上传到码云
  13. Elasticsearch 解决集群 Yellow 与 Red 的问题
  14. 计算机考研山西大学和太原理工大学,山西大学和太原理工大学,山西省内的两所知名高校,哪所更强?...
  15. QQ机器人——基于python以及qqbot模块
  16. vue项目打包App
  17. 关于人工智能企业商标退化及商标保护
  18. cf不能全屏win7的解决方法_怎么解决win7电脑没声音 win7电脑没声音解决方法介绍【详解】...
  19. CVPR 2022 最新106篇论文分方向整理|包含目标检测、动作识别、图像处理等32个方向
  20. Something went wrong while dowloading dependencies could not open caffe-builder-config.cmake

热门文章

  1. Mac遇到浏览器能上网,大部分软件无法上网,恢复后共享网络给手机又上不了网的情况及解决办法
  2. Opencv外参估计cvFindExtrinsicCameraParams2原理解析(四)
  3. 想跳槽涨薪的必看!Android跨进程通信导论,使用指南
  4. css设置半透明背景颜色并且内容不会受影响的解决办法
  5. 【ADUIO音频测试与认证】什么是耳机声压?耳机做CE要做声压测试标准是什么?
  6. 阿里云ECS服务器密钥对登录遇到的坑
  7. 优秀有价值的博客收藏列表
  8. 【计算机网络】TCP/IP四层模型和OSI七层模型
  9. 传中移动5省将销售iPhone 4 非苹果直供
  10. 独立思考Justic:How to Measure Pleasure