pyenv path
frdel committed
Sep 23, 2025 at 11:15 UTC
9f6c1bf4cc80d7fbdae2a0b0c38314c95d1fdedb
1 file changed
+4
-4
docker/base/fs/ins/install_pyenv.sh
+4
-4
@@ -10,12 +10,12 @@ apt-get install -y --no-install-recommends \
10
libncursesw5-dev xz-utils tk-dev libxml2-dev \
11
libxmlsec1-dev libffi-dev liblzma-dev
12
13
-# Install pyenv for root user
14
-git clone https://github.com/pyenv/pyenv.git /root/.pyenv
13
+# Install pyenv globally
14
+git clone https://github.com/pyenv/pyenv.git /opt/pyenv
15
16
# Setup environment variables for pyenv to be available system-wide
17
cat > /etc/profile.d/pyenv.sh <<'EOF'
18
-export PYENV_ROOT="/root/.pyenv"
18
+export PYENV_ROOT="/opt/pyenv"
19
export PATH="$PYENV_ROOT/bin:$PATH"
20
eval "$(pyenv init --path)"
21
EOF
@@ -29,6 +29,6 @@ source /etc/profile.d/pyenv.sh
29
echo "====================PYENV INSTALLING PYTHON 3.12.4===================="
30
pyenv install 3.12.4
31
32
-/root/.pyenv/versions/3.12.4/bin/python -m venv /opt/venv-a0
32
+/opt/pyenv/versions/3.12.4/bin/python -m venv /opt/venv-a0
33
34
echo "====================PYENV END===================="
\ No newline at end of file