Управление версиями в Python [дубликат]

Я только начинаю изучать питон. Для этого я хочу установить последнюю версию на Ubuntu 18.04. Я получил доступ к странице https://www.python.org/downloads/ .

Python 3.8.3 должен быть текущей версией, верно? Я ввел следующие команды и ожидал, что на моем компьютере будет установлен phyton 3.8.

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.8

К сожалению, это не так. По крайней мере, этот запрос показывает мне другой номер версии.

python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Может, я неправильно читаю?

Что означают отдельные числа и почему я нигде не вижу 3,8?

1
задан 21 June 2020 в 11:45

1 ответ

Ubuntu does not distribute the latest packages, they distribute packages that have been tested and known to work together. See Why don't the Ubuntu repositories have the latest versions of software? for details.

You have specifically requested that python3.8 be installed, but incase some packages rely on the older python3 being installed python3 will still default to python 3.6.9. To specify that you really want to run python 3.8 run python3.8 on the command line in place of python3.

2
ответ дан 30 July 2020 в 22:22

Другие вопросы по тегам:

Похожие вопросы: