如何在核心用户下的CoreOS上安装Python?

2024-05-29 05:52:54 发布

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

按照此指南尝试在CoreOS上安装Python:

https://github.com/judexzhu/Install-Python-on-CoreOs

#!/bin/bash -uxe

VERSION=2.7.13.2715
PACKAGE=ActivePython-${VERSION}-linux-x86_64-glibc-2.12-402695

# make directory
mkdir -p /opt/bin
cd /opt

wget http://downloads.activestate.com/ActivePython/releases/${VERSION}/${PACKAGE}.tar.gz
tar -xzvf ${PACKAGE}.tar.gz

mv ${PACKAGE} apy && cd apy && ./install.sh -I /opt/python/

ln -sf /opt/python/bin/easy_install /opt/bin/easy_install
ln -sf /opt/python/bin/pip /opt/bin/pip
ln -sf /opt/python/bin/python /opt/bin/python
ln -sf /opt/python/bin/python /opt/bin/python2
ln -sf /opt/python/bin/virtualenv /opt/bin/virtualenv

该脚本在CoreOS的root用户下运行良好。但是在core用户下,它不能工作。在

如果使用这个:

^{pr2}$

显示-bash: /home/core/.bashrc: Read-only file system。在

怎么办?在


Tags: installcombashpackagebinversioncdtar

热门问题