晚上在安装llvmlite时报错:

zhang@debian:~$ pip3 install llvmlite==0.16.0
Collecting llvmlite==0.16.0Using cached https://files.pythonhosted.org/packages/23/c7/56d7c18564783f33206b3cb6ce861a8d681e8be1a124c5651145ce5aad0f/llvmlite-0.16.0.tar.gz
Building wheels for collected packages: llvmliteRunning setup.py bdist_wheel for llvmlite ... errorComplete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-s7dyuobp/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/tmpsklqjxv1pip-wheel- --python-tag cp35:running bdist_wheelrunning buildgot version from file /tmp/pip-build-s7dyuobp/llvmlite/llvmlite/_version.py {'version': '0.16.0', 'full': '964cf1d6d725b000c769379a5efe11932fcfc551'}running build_ext/usr/bin/python3 /tmp/pip-build-s7dyuobp/llvmlite/ffi/build.pyLLVM version... Traceback (most recent call last):File "/tmp/pip-build-s7dyuobp/llvmlite/ffi/build.py", line 105, in main_posixout = subprocess.check_output([llvm_config, '--version'])File "/usr/lib/python3.5/subprocess.py", line 316, in check_output**kwargs).stdoutFile "/usr/lib/python3.5/subprocess.py", line 383, in runwith Popen(*popenargs, **kwargs) as process:File "/usr/lib/python3.5/subprocess.py", line 676, in __init__restore_signals, start_new_session)File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_childraise child_exception_type(errno_num, err_msg)FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/tmp/pip-build-s7dyuobp/llvmlite/ffi/build.py", line 152, in <module>main()File "/tmp/pip-build-s7dyuobp/llvmlite/ffi/build.py", line 142, in mainmain_posix('linux', '.so')File "/tmp/pip-build-s7dyuobp/llvmlite/ffi/build.py", line 108, 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 '/usr/bin/python3' failed with exit status 1----------------------------------------Failed building wheel for llvmliteRunning setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmliteRunning setup.py install for llvmlite ... errorComplete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-s7dyuobp/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-k5q48i8w-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:running installrunning buildgot version from file /tmp/pip-build-s7dyuobp/llvmlite/llvmlite/_version.py {'version': '0.16.0', 'full': '964cf1d6d725b000c769379a5efe11932fcfc551'}running build_ext/usr/bin/python3 /tmp/pip-build-s7dyuobp/llvmlite/ffi/build.pyLLVM version... Traceback (most recent call last):File "/tmp/pip-build-s7dyuobp/llvmlite/ffi/build.py", line 105, in main_posixout = subprocess.check_output([llvm_config, '--version'])File "/usr/lib/python3.5/subprocess.py", line 316, in check_output**kwargs).stdoutFile "/usr/lib/python3.5/subprocess.py", line 383, in runwith Popen(*popenargs, **kwargs) as process:File "/usr/lib/python3.5/subprocess.py", line 676, in __init__restore_signals, start_new_session)File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_childraise child_exception_type(errno_num, err_msg)FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/tmp/pip-build-s7dyuobp/llvmlite/ffi/build.py", line 152, in <module>main()File "/tmp/pip-build-s7dyuobp/llvmlite/ffi/build.py", line 142, in mainmain_posix('linux', '.so')File "/tmp/pip-build-s7dyuobp/llvmlite/ffi/build.py", line 108, 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 '/usr/bin/python3' failed with exit status 1----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-s7dyuobp/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-k5q48i8w-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-s7dyuobp/llvmlite/

这个报错是因为找不到llvm-config这个命令:

alias llvm-config="llvm-config-3.9"
export LLVM_CONFIG="/usr/bin/llvm-config-3.9"

然后再安装就不会报错了:

zhang@debian:~$ pip3 install llvmlite==0.16.0
Collecting llvmlite==0.16.0Using cached https://files.pythonhosted.org/packages/23/c7/56d7c18564783f33206b3cb6ce861a8d681e8be1a124c5651145ce5aad0f/llvmlite-0.16.0.tar.gz
Building wheels for collected packages: llvmliteRunning setup.py bdist_wheel for llvmlite ... doneStored in directory: /home/zhang/.cache/pip/wheels/2a/c0/a5/f0d4dc24ba9076d15b0797f84e3fc3e9a6280b56c111f0d6a2
Successfully built llvmlite
Installing collected packages: llvmlite
Successfully installed llvmlite-0.16.0

安装llvmlite报错解决:RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for相关推荐

  1. Python安装LLVMLite报错及解决方案

    问题背景 pip install llvmlite报错: Building wheels for collected packages: llvmliteBuilding wheel for llvm ...

  2. mac上安装webpack报错解决方法Hit error EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/webpack

    mac上安装webpack报错解决方法Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/webpack 参 ...

  3. Jenkins安装插件报错解决方法

    Jenkins安装插件报错解决方法 1.报错场景 2.场景分析 3.问题解决(不一定能全解决,看运气) 1.报错场景 按正常方式安装完Jenkins后安装插件会报错如下: // An highligh ...

  4. npm 安装依赖报错解决方法总结

    npm 安装依赖报错解决方法总结 参考文章: (1)npm 安装依赖报错解决方法总结 (2)https://www.cnblogs.com/ysxq/p/11658571.html (3)https: ...

  5. 深度学习部署:Windows安装pycocotools报错解决方法

    深度学习部署:Windows安装pycocotools报错解决方法 1.pycocotools库的简介 2.pycocotools安装的坑 3.解决办法 更多Ai资讯:公主号AiCharm 本系列是作 ...

  6. pycharm安装pandas报错解决办法

    pycharm安装pandas报错解决办法 当使用pycharm自动安装pandas时,提示安装失败并要求在命令提示符界面进行安装.在使用命令提示符安装成功之后,发现pycharm仍然无法安装pand ...

  7. 安装onnxruntime报错解决

    安装onnxruntime报错解决 对于onnxruntime出现以下错误 ERROR: Could not find a version that satisfies the requirement ...

  8. 解决虚拟机安装系统报错解决方法

    解决虚拟机安装系统报错解决方法 虚拟机安装系统报错提示: 错误原因:当你打开虚拟机安装系统时,它需要调用CPU虚拟化功能,因为他要把所有底层硬件虚拟给(VMwere 虚拟机),所以要开启虚拟化功能.虚 ...

  9. centos8安装向日葵报错解决

    centos8安装向日葵报错解决 首先下载linux向日葵 下载地址:https://sunlogin.oray.com/download 官方安装文档:https://service.oray.co ...

最新文章

  1. python基础学习(二)注释和算术运算符
  2. TNS-12545: Connect failed because target host or object does not exist
  3. pandas库基础学习
  4. axure怎么做手机app界面_iPhone11手机APP频繁闪退怎么办?
  5. mysql实例化_mysql多实例实例化数据库
  6. 翻译:Docker方式安装redmine
  7. BayaiM__oracle切换归档模式步骤:
  8. leetcode 贪心_leetcode题解(贪心算法)
  9. BLOG 可能的 BUG
  10. [CTO札记]Disney也进军数字出版市场了
  11. 华泰证券 python 自动交易软件_机智股票自动交易软件
  12. 菏泽智伴机器人_菏泽智伴机器人怎么代理
  13. arduino/mixly 智纳捷TTS语音合成模块
  14. java的泛型方法_Java中的泛型方法
  15. 英国告急!无油可售!加油站大排长龙 | 经济学人早报精选
  16. 抽象代数之pq阶群或者为循环群或者只有两种结构
  17. markdown的基本使用方法 1
  18. 08年次贷危机的微观机制
  19. android 动态摄像头权限,Android判断用户是否允许了摄像头权限实例代码
  20. [解密] DNA存储技术究竟牛在哪里?

热门文章

  1. cytoscape绘图互作网络图(二)
  2. pycharm windows 服务器_环境配置 | Pycharm远程开发的环境配置
  3. node 压缩图片_1Mb压缩成100k,图片无损压缩我选择它
  4. iMeta期刊12名编委入选科睿唯安2021年度高被引学者
  5. 246.三元图的应用与绘图实战
  6. Nature子刊:微生物来源分析包SourceTracker
  7. 求求你使用Tab键好吗
  8. R语言plotly包可视化线图(line plot)、使用restyle参数自定义设置可视化结果中线条的颜色、使用按钮动态切换线条的颜色(change line color with button)
  9. pandas使用pad函数向dataframe特定数据列的每个字符串添加前置(前缀)补齐字符或者字符串、向所有字符串的左侧填充、直到宽度达到指定要求(left padding)
  10. R语言使用caret包的confusionMatrix函数计算混淆矩阵、使用编写的自定义函数可视化混淆矩阵(confusion matrix)