[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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-v7b37aro/bcc_a9a6f43548ed43b6a87477f604a4b7ad/setup.py", line 30, in <module>
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) <security@centos.org>"
指纹: 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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-mdbef42z/bcc_27179990da2946649da252514cb9f583/setup.py", line 30, in <module>
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]#