質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python 2.7

Python 2.7は2.xシリーズでは最後のメジャーバージョンです。Python3.1にある機能の多くが含まれています。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Debian

Debianは、Debian GNU/Linux などのOS(オペレーティングシステム)です。

Q&A

解決済

1回答

4170閲覧

Python 2.7をDebian 10からアンインストールしたいのですが、エラーが出ます。

退会済みユーザー

退会済みユーザー

総合スコア0

Python 2.7

Python 2.7は2.xシリーズでは最後のメジャーバージョンです。Python3.1にある機能の多くが含まれています。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Debian

Debianは、Debian GNU/Linux などのOS(オペレーティングシステム)です。

0グッド

0クリップ

投稿2019/12/03 13:59

こんばんは。お世話になります。

Python 2.7をDebian 10からアンインストールしたいのですが、下記のエラーが出ます。

bash

1$ pip uninstall python 2DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support 3ERROR: Cannot uninstall 'Python'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Google翻訳にかけてみますと、下記の翻訳結果が帰ってきました。

Cannot uninstall 'Python'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

また、下記のようなエラーも出ました。

bash

1sudo apt remove python 2Reading package lists... Done 3Building dependency tree 4Reading state information... Done 5Some packages could not be installed. This may mean that you have 6requested an impossible situation or if you are using the unstable 7distribution that some required packages have not yet been created 8or been moved out of Incoming. 9The following information may help to resolve the situation: 10 11The following packages have unmet dependencies: 12 libsmbclient : Depends: samba-libs (= 2:4.9.5+dfsg-5+deb10u1) but it is not going to be installed 13E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

どのようにしたらPython 2.7をアンインストールできるのでしょうか?ご教授願ます。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

y_waiwai

2019/12/03 22:36

そもそも、なぜアンインストールしたいんでしょうか。 そっちほうを解決しましょうよ
退会済みユーザー

退会済みユーザー

2019/12/04 13:26 編集

https://teratail.com/questions/226957 https://teratail.com/questions/226956 上記にも質問を投稿させていただきましたが、 ActivityWatchというOSSをインストールするのにvirtualenvというツールが必要でして、virtualenvをインストールするのにPython 2.7が邪魔しているというわけです。
guest

回答1

0

ベストアンサー

Debian10のパッケージの中にはpython2.7に依存しているものがあり削除することは薦められません。

それでもやりたければ

sh

1$ sudo apt remove python2.7

でできると思いますが強行した結果滅茶苦茶になるかもしれません。

投稿2019/12/03 14:50

TaniguchiTakaki

総合スコア171

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2019/12/04 13:25

Debian 10のパッケージの中にはPython 2.7に依存しているものがあるのは存じませんでした。教えていただきかんしゃです!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問