Форум русскоязычного сообщества Ubuntu
Страница сгенерирована за 0.059 секунд. Запросов: 23.
- Сайт
- Об Ubuntu
- Скачать Ubuntu
- Семейство Ubuntu
- Новости
- Форум
- Помощь
- Правила
- Документация
- Пользовательская документация
- Официальная документация
- Семейство Ubuntu
- Материалы для загрузки
- Совместимость с оборудованием
- RSS лента
- Сообщество
- Наши проекты
- Местные сообщества
- Перевод Ubuntu
- Тестирование
- RSS лента
© 2012 Ubuntu-ru — Русскоязычное сообщество Ubuntu Linux.
© 2012 Canonical Ltd. Ubuntu и Canonical являются зарегистрированными торговыми знаками Canonical Ltd.
Uninstall python3.8 from Ubuntu 20.04.2 LTS
This is a pretty dumb question, but is ubuntu dependent on Python 3.8? If it is not, how can I uninstall it from my system?
3,172 3 3 gold badges 22 22 silver badges 43 43 bronze badges
asked Mar 26, 2021 at 17:39
user15113985 user15113985
take a look at this
Mar 26, 2021 at 17:41
Out of curiosity, why do you want to delete it? If you need another version of python, just install it and leave 3.8 in case you need it for something else.
Mar 26, 2021 at 17:44
@Michael i don’t like to left things that im not using anymore installed on my machine rofl
– user15113985
Mar 26, 2021 at 17:49
Check out askubuntu.com for questions concerning the installation or removal of packages on Ubuntu. This is not a programming question and off-topic here.
Mar 26, 2021 at 20:18
5 Answers 5
You can uninstall it after installing a python3* version as alternative. You have to install python3.9 available from Ubuntu repository.
sudo apt install python3.9
Without a python3 installed the system will be unusable.
answered Mar 26, 2021 at 21:02
4,425 1 1 gold badge 23 23 silver badges 34 34 bronze badges
The advantage of using apt autoremove is to remove Python along with its dependencies.
sudo apt autoremove python3 -y
For more information, check the answer given here.
15.2k 6 6 gold badges 18 18 silver badges 38 38 bronze badges
answered May 17, 2022 at 11:10
Eurowebs Engineering SL Eurowebs Engineering SL
21 4 4 bronze badges
Don’t uninstall python3 in ubuntu as it is depended on many python packages if you delete that terminal, firefox browser,idle , will also delete and at last it will show you authentication error
answered Jan 12 at 0:23
11 2 2 bronze badges
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don’t require clarification from the asker. — From Review
Jan 18 at 0:13
Take a look at this:
From @progmatico, it’s not recommended that you uninstall builtins on Ubuntu such as Python. You can update Python, but it’s not reccomended to uninstall. You can uninstall Python 2.x here, but unless you have Python 2 installed on your machine, this won’t be much help. Unless ROM is tight(if not, I suggest the Raspberry Pi(switchable SD cards)), you don’t need to have Python uninstalled.
In summary, you don’t need to uninstall Python, it’s a great coding language 😉
Complete uninstall of python3.10
Should I remove everything related to python3.10 in /usr/local/bin/ folder? PS: I’ve installed it from source, I don’t know if that makes any difference.
2,227 5 5 gold badges 16 16 silver badges 32 32 bronze badges
asked Oct 30, 2021 at 19:15
Henrique Branco Henrique Branco
163 1 1 gold badge 1 1 silver badge 6 6 bronze badges
You are using the wrong tool for the job: Apt-get ONLY knows about deb packages. Apt-get has never heard of installing from source, and deb-package tools cannot help you with that.
Oct 30, 2021 at 19:27
You can use the deadsnakes PPA to install (and subsequently uninstall) python3.10 in Ubuntu 20.04 in a painless manner. launchpad.net/~deadsnakes/+archive/ubuntu/ppa
Как установить другую версию python
У меня стоит pyhton 3.8 . Но мне нужно установить pyhton 3.7 (на то есть причины). Нужно ли мне удалять pyhton 3.8 , чтобы сделать это, и если нужно то как? Если что у меня операционная система Linux и модель Linux Mint 18 .
Отслеживать
47.8k 17 17 золотых знаков 56 56 серебряных знаков 100 100 бронзовых знаков
задан 29 мая 2020 в 18:02
Kate Adams Kate Adams
17 1 1 серебряный знак 4 4 бронзовых знака
Не модель, а дистрибутив
29 мая 2020 в 18:03
Можно через pip поставить всё что угодно и каких угодно версий в домашний каталог.
29 мая 2020 в 23:57
2 ответа 2
Сортировка: Сброс на вариант по умолчанию
Но мне нужно установить pyhton 3.7
Устанавливайте на здоровье. Только не «руками», а системным установщиком пакетов. Что там у вас — dnf / zypper / yum.
Нужно ли мне удалять pyhton 3.8
На самом деле, Вам нужно разобраться с тем, какая программа на питоне какой конкретный интерпретатор питона использует. До сих пор есть много приложений, которые написаны для питона 2.7
Если все Ваши скрипты будут использовать 3.7, то проще всего, в каталоге /usr/bin/ выполнить команду:
sudo ln -s python3.7 python
Тогда все обращения к интерпретатору питона будут вызывать именно версию 3.7.
Но это довольно рискованный путь. В системе есть куча файлов на питоне и решать за всех — не стоит.
Если же Вам просто нужно, что бы конкретно Ваши программы исполнялись в версии 3.7, то пропишите это явно в каждой вашей программе в первой строке так:
#!/usr/bin/python3.7
и всё будет именно так, как Вы хотите.
