我需要在我的 EMR 集群 (AMI 3.1.1) 中安装 python3 作为引导步骤的一部分。所以我添加了以下命令:
sudo yum install -y python3
但每次我都会收到以下错误:
Existing lock /var/run/yum.pid: another copy is running as pid 1829.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
我怎样才能避免这个错误?或者有没有一种方法可以不通过这条路线安装Python 3?
问题在于 Amazon Linux AMI 在启动过程中执行 yum 更新。引导操作可能会与其发生冲突,如此处所示。只需在 yum 安装之前添加几分钟的睡眠即可。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)