diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-09-08 20:20:49 +0300 |
---|---|---|
committer | Samruddhi Khandale <skhandale@microsoft.com> | 2022-09-08 20:20:49 +0300 |
commit | 6c2ee1821fb8af7c92c21139fcee5894c1e32f0f (patch) | |
tree | 1462eab8e12bbbd33e2f79cb3d80ef8436e5869d | |
parent | 8218a6d3c16af67dc7b068113f1dbbb403c2ce0a (diff) |
fix path
-rwxr-xr-x | src/python/install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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" |