From 6c2ee1821fb8af7c92c21139fcee5894c1e32f0f Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Thu, 8 Sep 2022 17:20:49 +0000 Subject: fix path --- src/python/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/python/install.sh') diff --git a/src/python/install.sh b/src/python/install.sh index 08465dc..a767087 100755 --- a/src/python/install.sh +++ b/src/python/install.sh @@ -315,7 +315,7 @@ sudo_if() { install_user_package() { PACKAGE="$1" - sudo_if "$INSTALL_PATH/bin/python3" -m pip install --user --upgrade --no-cache-dir "$PACKAGE" + sudo_if "$CURRENT_PATH/bin/python" -m pip install --upgrade --no-cache-dir "$PACKAGE" } add_user_jupyter_config() { @@ -336,6 +336,7 @@ install_python() { if [ ${PYTHON_VERSION} = "os-provided" ] || [ ${PYTHON_VERSION} = "system" ]; then check_packages python3 python3-doc python3-pip python3-venv python3-dev python3-tk PYTHON_ROOT="/usr/bin" + CURRENT_PATH=$PYTHON_ROOT ln -s "${PYTHON_ROOT}/python3" "${PYTHON_ROOT}/python" ln -s "${PYTHON_ROOT}/pydoc3" "${PYTHON_ROOT}/pydoc" -- cgit v1.2.3