/在模拟生成期间,在brpsclpythonbytecompile中找不到usr/bin/python3.3

2024-04-20 07:17:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在CentOS6下构建python33 python virtualenv。我正在尝试重新生成当前版本,如:https://www.softwarecollections.org/repos/rhscl/python33/epel-6-x86_64/python33-python-virtualenv-1.10.1-1.el6.src.rpm

我收到一个错误:/usr/lib/rpm/brp-scl-python-bytecompile: line 47: /usr/bin/python3.3: No such file or directory

知道我做错什么了吗?在

注意:我是在一个模拟环境中进行的,scl定义为python33。在


Tags: httpsorg版本virtualenvusrwwwreposx86
1条回答
网友
1楼 · 发布于 2024-04-20 07:17:34

每次生成python33集合的子包时,都需要在mock中安装一个“python33 build”包。您需要修改模拟配置,如下所示:

替换:config_opts['chroot_setup_cmd'] = 'install @buildsys-build'

使用:config_opts['chroot_setup_cmd'] = 'install @build scl-utils-build python33-build'

通常,每次为该集合生成子包时都需要安装一个'-build'包。“-build”包是从元包源生成的。在这种情况下,它来自python33来源: https://copr.fedoraproject.org/coprs/rhscl/python33-el7/build/27227/

相关问题 更多 >