Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install fixes #367

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ else
exit 1
fi

python3.8 -m pip install -r ./requirements.txt
python3.8 -m pip install -r ./requirements.txt --break-system-packages
if [ "$?" -ne 0 ]; then
printf "${RED}An error occurred! seems pip doesn't work.\n${RST}"
exit 1
Expand All @@ -152,7 +152,7 @@ else
elif [ "$pm" = "2" ]; then
brew update
brew install python php
python3 -m pip install -r ./requirements.txt
python3 -m pip install -r ./requirements.txt --break-system-packages
if [ "$?" -ne 0 ]; then
printf "${RED}An error occurred! seems brew doesn't work.\n${RST}"
exit 1
Expand All @@ -164,7 +164,7 @@ else
fi
fi
if [ $TERMUX -gt 0 ];then
env pip install -r requirements.txt
env pip install -r requirements.txt --break-system-packages
status=$?
if [ "${status}" -ne 0 ]; then
printf "${RED}An error occurred! seems pip doesn't work.\n${RST}"
Expand All @@ -174,10 +174,10 @@ elif [ "$KERNEL" != "darwin" ]; then
pythonV="$(python3 --version | grep -oP '(?<=\.)\d+(?=\.)')"
status=1
if [ "${pythonV}" -ge 11 ]; then
env python3 -m pip install -r --break-system-packages ./requirements.txt
env python3 -m pip install -r ./requirements.txt --break-system-packages
status=$?
else
env python3 -m pip install -r ./requirements.txt
env python3 -m pip install -r ./requirements.txt --break-system-packages
status=$?
fi

Expand Down