Hello.
In this guide will show how to get Python3.10 on jetson nano.
Also guide uploaded here
More guides here
This guide was inspired by How to Install Python 3.10 on Ubuntu 20.04 & Ubuntu 18.04
Installation Guide
[NOTE] You can build python without SSL, though pip
won’t work.
Download & Build OpenSSL 1.1.1
cd /opt
border-leftsudo wget -O openssl.tgz https://ftp.openssl.org/source/old/1.1.1/openssl-1.1.1j.tar.gz
sudo tar xzf openssl.tgz
sudo rm openssl.tgz
cd openssl-1.1.1j/
sudo ./config --prefix=/opt/openssl
sudo make
sudo make install
Install Python 3.10.6
cd /opt
sudo wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
sudo tar xzf Python-3.10.0.tgz
cd Python-3.10.0
sudo ./configure --with-openssl=/opt/openssl
if you won’t use altinstall
then it can replace your current version.
sudo make altinstall
Check python version
python3.10 --version
Personally I like to store python environment in the same folder with my project.
So let’s create it.
mkdir PyProject
cd PyProject
python3.10 -m venv ./venv
source venv/bin/activate # source venv/bin/activate.fish (for fish shell)
Now normal python
command should work, because we are in the environment.
python --version
and now we can upgrade pip
python -m pip install --upgrade pip
And to exit/deactivate environment we can just do:
deactivate