python3 安装bcc
创始人
2024-06-02 10:11:37

[root@localhost ebpf]# pip install bcc
Collecting bcc
  Using cached bcc-0.1.10.tar.gz (9.6 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Couldn't find index page for 'pytest-runner' (maybe misspelled?)
      No local packages or download links found for pytest-runner
      Traceback (most recent call last):
        File "", line 2, in
        File "", line 34, in
        File "/tmp/pip-install-v7b37aro/bcc_a9a6f43548ed43b6a87477f604a4b7ad/setup.py", line 30, in
          setup(
        File "/usr/lib64/python3.9/distutils/core.py", line 108, in setup
          _setup_distribution = dist = klass(attrs)
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/setuptools/dist.py", line 269, in __init__
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/setuptools/dist.py", line 310, in fetch_build_eggs
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/pkg_resources/__init__.py", line 828, in resolve
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/pkg_resources/__init__.py", line 1073, in best_match
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/pkg_resources/__init__.py", line 1085, in obtain
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/setuptools/dist.py", line 380, in fetch_build_egg
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/setuptools/command/easy_install.py", line 634, in easy_install
      distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[root@localhost ebpf]# yum install -y epel-release
上次元数据过期检查:4:12:22 前,执行于 2023年03月12日 星期日 15时56分52秒。
依赖关系解决。
===============================================================================================================================================================================================
 软件包                                              架构                                     版本                                       仓库                                             大小
===============================================================================================================================================================================================
安装:
 epel-release                                        noarch                                   9-2.el9                                    extras-common                                    17 k
安装弱的依赖:
 epel-next-release                                   noarch                                   9-2.el9                                    extras-common                                   8.1 k

事务概要
===============================================================================================================================================================================================
安装  2 软件包

总下载:25 k
安装大小:26 k
下载软件包:
(1/2): epel-next-release-9-2.el9.noarch.rpm                                                                                                                     41 kB/s | 8.1 kB     00:00    
(2/2): epel-release-9-2.el9.noarch.rpm                                                                                                                          68 kB/s |  17 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                            24 kB/s |  25 kB     00:01     
CentOS Stream 9 - Extras packages                                                                                                                              135 kB/s | 2.1 kB     00:00    
导入 GPG 公钥 0x1D997668:
 Userid: "CentOS Extras SIG (https://wiki.centos.org/SpecialInterestGroup) "
 指纹: 363F C097 2F64 B699 AED3 968E 1FF6 A217 1D99 7668
 来自: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
导入公钥成功
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  准备中  :                                                                                                                                                                                1/1 
  安装    : epel-release-9-2.el9.noarch                                                                                                                                                    1/2 
  安装    : epel-next-release-9-2.el9.noarch                                                                                                                                               2/2 
  运行脚本: epel-next-release-9-2.el9.noarch                                                                                                                                               2/2 
  验证    : epel-next-release-9-2.el9.noarch                                                                                                                                               1/2 
  验证    : epel-release-9-2.el9.noarch                                                                                                                                                    2/2 

已安装:
  epel-next-release-9-2.el9.noarch                                                                 epel-release-9-2.el9.noarch                                                                

完毕!
[root@localhost ebpf]# pip install bcc
Collecting bcc
  Using cached bcc-0.1.10.tar.gz (9.6 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Couldn't find index page for 'pytest-runner' (maybe misspelled?)
      No local packages or download links found for pytest-runner
      Traceback (most recent call last):
        File "", line 2, in
        File "", line 34, in
        File "/tmp/pip-install-mdbef42z/bcc_27179990da2946649da252514cb9f583/setup.py", line 30, in
          setup(
        File "/usr/lib64/python3.9/distutils/core.py", line 108, in setup
          _setup_distribution = dist = klass(attrs)
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/setuptools/dist.py", line 269, in __init__
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/setuptools/dist.py", line 310, in fetch_build_eggs
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/pkg_resources/__init__.py", line 828, in resolve
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/pkg_resources/__init__.py", line 1073, in best_match
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/pkg_resources/__init__.py", line 1085, in obtain
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/setuptools/dist.py", line 380, in fetch_build_egg
        File "/usr/local/lib/python3.9/site-packages/setuptools-19.6-py3.9.egg/setuptools/command/easy_install.py", line 634, in easy_install
      distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[root@localhost ebpf]# pip install pytest-runner
Collecting pytest-runner
  Downloading pytest_runner-6.0.0-py3-none-any.whl (7.2 kB)
Installing collected packages: pytest-runner
Successfully installed pytest-runner-6.0.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[root@localhost ebpf]# pip install bcc
Collecting bcc
  Using cached bcc-0.1.10.tar.gz (9.6 kB)
  Preparing metadata (setup.py) ... done
Collecting numpy
  Downloading numpy-1.24.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 70.1 kB/s eta 0:00:00
Collecting traitlets
  Downloading traitlets-5.9.0-py3-none-any.whl (117 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.4/117.4 kB 45.9 kB/s eta 0:00:00
Collecting traittypes
  Downloading traittypes-0.2.1-py2.py3-none-any.whl (8.6 kB)
Building wheels for collected packages: bcc
  Building wheel for bcc (setup.py) ... done
  Created wheel for bcc: filename=bcc-0.1.10-py2.py3-none-any.whl size=4790 sha256=ed14aa80d0b96a671f600e6f6932d53bbce702fee6c05a082021f5cd070dd961
  Stored in directory: /root/.cache/pip/wheels/b2/32/31/4d60e78f9b08de4ce7e37b464c1dd5d60614a57701f18622f9
Successfully built bcc
Installing collected packages: traitlets, numpy, traittypes, bcc
Successfully installed bcc-0.1.10 numpy-1.24.2 traitlets-5.9.0 traittypes-0.2.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[root@localhost ebpf]# 

上一篇:定长内存池的实现

下一篇:递推-算法

相关内容

热门资讯

苗族的传统节日 贵州苗族节日有... 【岜沙苗族芦笙节】岜沙,苗语叫“分送”,距从江县城7.5公里,是世界上最崇拜树木并以树为神的枪手部落...
北京的名胜古迹 北京最著名的景... 北京从元代开始,逐渐走上帝国首都的道路,先是成为大辽朝五大首都之一的南京城,随着金灭辽,金代从海陵王...
怎么样的桃花 桃花近看远看的样... 今年的“三八”妇女节,阳光明媚,踏青赏花正当时。遂与姐妹们共赴十里蓝山,与花海来一场春天的约会。十里...
长白山自助游攻略 吉林长白山游... 昨天介绍了西坡的景点详细请看链接:一个人的旅行,据说能看到长白山天池全凭运气,您的运气如何?今日介绍...
脚上的穴位图 脚面经络图对应的... 人体穴位作用图解大全更清晰直观的标注了各个人体穴位的作用,包括头部穴位图、胸部穴位图、背部穴位图、胳...
猫咪吃了塑料袋怎么办 猫咪误食... 你知道吗?塑料袋放久了会长猫哦!要说猫咪对塑料袋的喜爱程度完完全全可以媲美纸箱家里只要一有塑料袋的响...
世界上最漂亮的人 世界上最漂亮... 此前在某网上,选出了全球265万颜值姣好的女性。从这些数量庞大的女性群体中,人们投票选出了心目中最美...
demo什么意思 demo版本... 618快到了,各位的小金库大概也在准备开闸放水了吧。没有小金库的,也该向老婆撒娇卖萌服个软了,一切只...
猫咪吃了塑料袋怎么办 猫咪误食... 你知道吗?塑料袋放久了会长猫哦!要说猫咪对塑料袋的喜爱程度完完全全可以媲美纸箱家里只要一有塑料袋的响...
苗族的传统节日 贵州苗族节日有... 【岜沙苗族芦笙节】岜沙,苗语叫“分送”,距从江县城7.5公里,是世界上最崇拜树木并以树为神的枪手部落...
怎么样的桃花 桃花近看远看的样... 今年的“三八”妇女节,阳光明媚,踏青赏花正当时。遂与姐妹们共赴十里蓝山,与花海来一场春天的约会。十里...
北京的名胜古迹 北京最著名的景... 北京从元代开始,逐渐走上帝国首都的道路,先是成为大辽朝五大首都之一的南京城,随着金灭辽,金代从海陵王...
长白山自助游攻略 吉林长白山游... 昨天介绍了西坡的景点详细请看链接:一个人的旅行,据说能看到长白山天池全凭运气,您的运气如何?今日介绍...
应用未安装解决办法 平板应用未... ---IT小技术,每天Get一个小技能!一、前言描述苹果IPad2居然不能安装怎么办?与此IPad不...
脚上的穴位图 脚面经络图对应的... 人体穴位作用图解大全更清晰直观的标注了各个人体穴位的作用,包括头部穴位图、胸部穴位图、背部穴位图、胳...
世界上最漂亮的人 世界上最漂亮... 此前在某网上,选出了全球265万颜值姣好的女性。从这些数量庞大的女性群体中,人们投票选出了心目中最美...
demo什么意思 demo版本... 618快到了,各位的小金库大概也在准备开闸放水了吧。没有小金库的,也该向老婆撒娇卖萌服个软了,一切只...