Fix pip installation: Install pip3 if not available
This commit is contained in:
@@ -25,12 +25,16 @@ jobs:
|
||||
- name: Set up Python
|
||||
run: |
|
||||
python3 --version
|
||||
python3 -m pip install --upgrade pip
|
||||
# Install pip if not available
|
||||
if ! command -v pip3 &> /dev/null; then
|
||||
sudo apt-get update && sudo apt-get install -y python3-pip
|
||||
fi
|
||||
python3 -m pip install --upgrade pip || pip3 install --upgrade pip
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip3 install --upgrade pip
|
||||
pip3 install -r requirements.txt
|
||||
|
||||
- name: Run update script
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user