mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-09 13:57:54 -05:00
Modify setup_venv to incorporate python version.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
TD="$(cd $(dirname $0) && pwd)"
|
||||
VENV_DIR="$TD/shark.venv"
|
||||
if [ -z "$PYTHON" ]; then
|
||||
PYTHON="$(which python)"
|
||||
PYTHON="$(which python3)"
|
||||
fi
|
||||
|
||||
echo "Setting up venv dir: $VENV_DIR"
|
||||
@@ -25,11 +25,11 @@ source "$VENV_DIR/bin/activate" || die "Could not activate venv"
|
||||
# reference to the python executable from the venv.
|
||||
python -m pip install --upgrade pip || die "Could not upgrade pip"
|
||||
python -m pip install --upgrade -r "$TD/requirements.txt"
|
||||
pip install --find-links https://github.com/llvm/torch-mlir/releases torch-mlir
|
||||
pip install --find-links https://github.com/NodLabs/SHARK/releases iree-compiler iree-runtime
|
||||
pip install git+https://github.com/pytorch/functorch.git
|
||||
pip install transformers
|
||||
pip install .
|
||||
python -m pip install --find-links https://github.com/llvm/torch-mlir/releases torch-mlir
|
||||
python -m pip install --find-links https://github.com/NodLabs/SHARK/releases iree-compiler iree-runtime
|
||||
python -m pip install git+https://github.com/pytorch/functorch.git
|
||||
python -m pip install transformers
|
||||
python -m pip install .
|
||||
|
||||
Red=`tput setaf 1`
|
||||
Green=`tput setaf 2`
|
||||
|
||||
Reference in New Issue
Block a user