-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c63e29
commit ea86e6e
Showing
7 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Check if pip is installed and install it if it is not. | ||
if ! command -v pip &> /dev/null | ||
then | ||
echo "pip could not be found, installing..." | ||
python -m ensurepip --upgrade | ||
fi | ||
|
||
# Update pip to the latest version. | ||
python -m pip install --upgrade pip | ||
|
||
# Install packages from the requirements.txt file. | ||
if [ -f "requirements.txt" ]; then | ||
echo "Installing packages from requirements.txt..." | ||
pip install -r requirements.txt | ||
else | ||
echo "Error: requirements.txt does not exist." | ||
exit 0 | ||
fi | ||
|
||
echo "Package installation complete." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Check if pip is installed and install it if it is not. | ||
if ! command -v pip &> /dev/null | ||
then | ||
echo "pip could not be found, installing..." | ||
python -m ensurepip --upgrade | ||
fi | ||
|
||
# Update pip to the latest version. | ||
python -m pip install --upgrade pip | ||
|
||
# Install packages from the requirements.txt file. | ||
if [ -f "requirements.txt" ]; then | ||
echo "Installing packages from requirements.txt..." | ||
pip install -r requirements.txt | ||
else | ||
echo "Error: requirements.txt does not exist." | ||
exit 0 | ||
fi | ||
|
||
echo "Package installation complete." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Check if pip is installed and install it if it is not. | ||
if ! command -v pip &> /dev/null | ||
then | ||
echo "pip could not be found, installing..." | ||
python -m ensurepip --upgrade | ||
fi | ||
|
||
# Update pip to the latest version. | ||
python -m pip install --upgrade pip | ||
|
||
# Install packages from the requirements.txt file. | ||
if [ -f "requirements.txt" ]; then | ||
echo "Installing packages from requirements.txt..." | ||
pip install -r requirements.txt | ||
else | ||
echo "Error: requirements.txt does not exist." | ||
exit 0 | ||
fi | ||
|
||
echo "Package installation complete." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters