Skip to content

Commit

Permalink
fix: changing default os python version
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jul 30, 2024
1 parent 0fd81d9 commit 5eba6b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,17 +224,17 @@ function install_python() {
# region install python3.10 system-widely
rm -rf /usr/lib/python3/dist-packages/blinker*
if ! python3.10 --version &>/dev/null; then
echo "Python 3.10 is not installed. Removing existing Python installations..."
echo "Python 3.10 is not installed. "
install_package software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
sudo apt-get -y remove python*
# sudo apt-get -y remove python*
fi
install_package python3.10-dev
ln -sf $(which python3.10) /usr/bin/python3
ln -sf /usr/bin/python3 /usr/bin/python
#ln -sf $(which python3.10) /usr/bin/python3
#ln -sf /usr/bin/python3 /usr/bin/python
if ! is_installed pip; then
curl https://bootstrap.pypa.io/get-pip.py | python3 -
pip install -U pip
curl https://bootstrap.pypa.io/get-pip.py | python3.10 -
python3.10 -m pip install -U pip
fi
# endregion

Expand Down
2 changes: 1 addition & 1 deletion hiddify-panel/src
Submodule src updated from 17076a to 0aa266

0 comments on commit 5eba6b3

Please sign in to comment.