Spaces:
Sleeping
Sleeping
File size: 887 Bytes
886d8e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
#!/bin/bash
echo "Starting Open Interpreter installation..."
sleep 2
echo "This will take approximately 5 minutes..."
sleep 2
# Check if Rust is installed
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
# Install pyenv
curl https://pyenv.run | bash
# Define pyenv location
pyenv_root="$HOME/.pyenv/bin/pyenv"
python_version="3.11.7"
# Install specific Python version using pyenv
$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
# Unset the Python version
$pyenv_root shell --unset
echo ""
echo "Open Interpreter has been installed. Run the following command to use it: "
echo ""
echo "interpreter"
|