LoginSignup
0
1

More than 1 year has passed since last update.

Ubuntu 22.04 に Python 3.10 をインストール(OS標準)

Posted at

はじめに

Ubuntu 22.04にPython 3.10をインストール

LOG

インストール

# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

# apt update; apt install -y python3
... 略

各種確認

# which python{,2,3}
/usr/bin/python3

# ll /usr/bin/python*
lrwxrwxrwx 1 root root      10 Mar 25 12:41 /usr/bin/python3 -> python3.10*
-rwxr-xr-x 1 root root 5901416 Apr  2 09:04 /usr/bin/python3.10*

# python3 -V
Python 3.10.4

# apt show python3
Package: python3
Version: 3.10.4-0ubuntu2
Priority: important
Section: python
Source: python3-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Matthias Klose <doko@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 92.2 kB
Provides: python3-profiler
Pre-Depends: python3-minimal (= 3.10.4-0ubuntu2)
Depends: python3.10 (>= 3.10.4-1~), libpython3-stdlib (= 3.10.4-0ubuntu2)
Suggests: python3-doc (>= 3.10.4-0ubuntu2), python3-tk (>= 3.9.10-2~), python3-venv (>= 3.10.4-0ubuntu2)
Replaces: python3-minimal (<< 3.1.2-2)
Homepage: https://www.python.org/
Task: minimal, server-minimal
Download-Size: 22.8 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
Description: interactive high-level object-oriented language (default python3 version)
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1