![]() ![]() Press enter to confirm python3.9, or select the option for python 3.9.ĥ) Finally, double check your python version with: python3 -V You should see a list of python versions like this: Sudo update-alternatives -install /usr/bin/python3 python3 /usr/bin/python3.9 2 Sudo update-alternatives -install /usr/bin/python3 python3 /usr/bin/python3.8 1 (for example use “/usr/bin/python3.10” if you got 3.10 from step 1). Let’s configure versions now.Ĥ) Enter the following command, but replace “/usr/bin/python3.8” with your current version if different. Python 3.9 is now installed, but it may not be the default version on your machine. Make a note of your current version for step 4.Ģ) Download the python repository for ubuntu: sudo add-apt-repository ppa:deadsnakes/ppaģ) Install Python 3.9: sudo apt install python3.9 ![]() Install venv and create a python virtual environmentġ) Check your python version with the command: python3 -V This will output your current version of python3.You can simply copy and paste these commands. Familiarity with the command line will be helpful, but otherwise no assumptions are made about your technical skill. (other versions of Ubuntu are probably fine, but 20.04 was used for testing this guide) A computer, virtual machine (AWS, Google Cloud, etc.), or windows subsystem for linux (WSL) running ubuntu version 20.04.The methods outlined here are intended for a fresh installation of Ubuntu 20.04 LTS. This is a step-by-step guide for installing Python3.9 and the python virtual environment manager: venv. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |