601 B
601 B
How to Use the Script
-
Create the script file: Save the script as
install_latest_python.sh.nano install_latest_python.sh -
Make the script executable: Make the script executable using the
chmodcommand:chmod +x install_latest_python.sh -
Run the script: Execute the script:
./install_latest_python.sh
This will automatically install the latest Python version (as per the specified PYTHON_VERSION in the script) and pip. Modify PYTHON_VERSION=3.11 to the specific version you want, such as 3.12 if necessary.