![]() ![]() Usually Python 2 is linked to python command and Python 3 is linked to python3 command. ![]() python3.10 : The one we installed from source.python3 : The default Python 3.5.3 version.python : The default Python 2.7.13 version.Now you should have three versions of Python installed ![]() If you've followed all of the above steps, you should have no problems. This can take a few minutes, so just be patient. Sudo apt install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev Go back to the command line on your Raspberry Pi On the next page scroll down to the bottom and in "Files" section right click on "Gzipped source tarball" and choose "Copy link address" from the browser context menu. Go to official Python download page and look under "Looking for a specific release?" section.Ĭlick on the version you want, I chose 3.10.2. Find and install latest available Python version I want to keep Python 2.7.13 as is and only update Python 3.5.3 to the latest 3.x version. Usually you'll have both 2.x and 3.x You can easily check this by running below commands $ python -V Multiple versions of Python can be installed at the same time. If you're in the same boat as me, read on. To my surprise the latest available Python version in the official Raspbian repo was 3.5.3 To install a newer one, I had to do a few more things than a simple apt install python3. Recently I wanted to install a certain package on my Raspberry Pi that required Python 3.6 or higher. Raspberry Pi, Python Install latest Python version on Raspberry Pi ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |