|
#!/bin/bash |
|
|
|
echo "Starting Open Interpreter installation..." |
|
sleep 2 |
|
echo "This will take approximately 5 minutes..." |
|
sleep 2 |
|
|
|
|
|
if ! command -v rustc &> /dev/null |
|
then |
|
echo "Rust is not installed. Installing now..." |
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
|
else |
|
echo "Rust is already installed." |
|
fi |
|
|
|
|
|
curl https://pyenv.run | bash |
|
|
|
|
|
pyenv_root="$HOME/.pyenv/bin/pyenv" |
|
|
|
python_version="3.11.7" |
|
|
|
|
|
$pyenv_root init |
|
$pyenv_root install $python_version --skip-existing |
|
$pyenv_root shell $python_version |
|
|
|
$pyenv_root exec pip install open-interpreter --break-system-packages |
|
|
|
$pyenv_root shell --unset |
|
|
|
echo "" |
|
echo "Open Interpreter has been installed. Run the following command to use it: " |
|
echo "" |
|
echo "interpreter" |
|
|