1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash if [ -n "$(which pip)" ]; then echo installing deps using pip pip install openai exit 0 fi if [ -n "$(which pip3)" ]; then echo installing deps using pip3 pip3 install openai exit 0 fi echo pip or pip3 not found exit 1