Skip to content

Commit

Permalink
Version
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Apr 9, 2024
1 parent ae28df9 commit 821ada3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,19 @@ else
fi

# Install Python and remember the version
python_version=3.11.9
python_version=3.11
$pyenv_root install $python_version --skip-existing
$pyenv_root shell $python_version

# Explicitly use the installed Python version for commands
installed_version=$($pyenv_root exec python --version)
installed_version=$($pyenv_root exec python$python_version --version)
echo "Installed Python version: $installed_version"
if [[ $installed_version != *"$python_version"* ]]; then
echo "Python $python_version was not installed correctly. Please open an issue at https://github.com/openinterpreter/universal-python/."
exit 1
fi

# Use the specific Python version to install open-interpreter
$pyenv_root exec python -m pip install open-interpreter
$pyenv_root exec python$python_version -m pip install open-interpreter

echo "Open Interpreter has been installed. Run the following command to use it:"
echo "interpreter"

0 comments on commit 821ada3

Please sign in to comment.