From 82713c3475dbbb1192b993aa1da32154d8a8b547 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Tue, 14 Mar 2023 19:10:35 +0100 Subject: using pip or pip3 to install deps --- install.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 7b4e187..76174c4 100755 --- a/install.sh +++ b/install.sh @@ -1,9 +1,16 @@ #!/bin/bash -if [ -z "$(which pip3)" ]; then - echo pip3 not found - exit 1 +if [ -n "$(which pip)" ]; then + echo installing deps using pip + pip install openai + exit 0 fi -echo installing deps using pip3 -pip3 install openai +if [ -n "$(which pip3)" ]; then + echo installing deps using pip3 + pip3 install openai + exit 0 +fi + +echo pip or pip3 not found +exit 1 -- cgit v1.2.3