Skip to content

Commit c5a3949

Browse files
authored
Merge pull request #1130 from MartinLBeacham/MacInstallerUpdate
Updated to address comment regarding pip installer not working by changing from bash to zsh.
2 parents 13da2fe + afcadcb commit c5a3949

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

installers/oi-mac-installer.sh

100644100755
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,25 @@ pyenv_root="$HOME/.pyenv/bin/pyenv"
1212
if ! command -v $pyenv_root &> /dev/null
1313
then
1414
echo "pyenv is not installed. Installing now..."
15-
curl https://pyenv.run | bash
15+
curl https://pyenv.run | zsh #zsh is the default shell for mac now. Changing this may cause install to fail
1616
else
1717
echo "pyenv is already installed."
1818
fi
1919

20+
PYENV_VERSION='3.11.7'
21+
2022
$pyenv_root init
2123

22-
$pyenv_root install 3.11.7 --skip-existing
24+
$pyenv_root install $PYENV_VERSION --skip-existing
2325

24-
# do we need to do this? it works on a computer where shell didn't, but it doesn't install the command to `interpreter`
25-
# PYENV_VERSION=3.11.7 $pyenv_root exec pip install open-interpreter
26+
$pyenv_root init
2627

27-
$pyenv_root shell 3.11.7
28+
$pyenv_root global $PYENV_VERSION
2829

29-
pip install open-interpreter
30+
$pyenv_root exec pip install open-interpreter
3031

32+
$pyenv_root shell $PYENV_VERSION
33+
$pyenv_root pip install open-interpreter
3134
$pyenv_root shell --unset
3235

3336
echo ""

0 commit comments

Comments
 (0)