python3 pip3 にて、psutil が削除できない。
Q&A
Closed
解決したいこと
Linux Mint 4(debbie) 32bit にて、
postgreSQLをインストール(Debian 11.12-0+deb10u1)して、
pgAdmin4 もインストールしようとしました。
素直にapt にて pgAdmin4 は入れられなく、python 仮想環境上で実行できる
との記事を見つけたので、その方法を試しています。
そこでの手順で、
pip3 install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.25/pip/pgadmin4-4.25-py3-none-any.whl
を実行したところ、
psutil がアンインストールができません。
とのメッセージが出ます。
正確には、アップデートする為のアンインストールのようです。
どこかに依存関係があるようなのですが、見当がつかないので、
だれか助けてくれないか・・と思っております。
調査方法、ここを見てみては?というヒントだけでも・・・
よろしくお願いいたします。
発生している問題・エラー
:
Collecting psutil>=5.7.0 (from pgadmin4==4.25)
:
Installing collected packages: psutil, pgadmin4
Found existing installation: psutil 5.5.1
Cannot uninstall 'psutil'. 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.
distutilsでインストールされたプロジェクトと言っていますけど、どこを見ればよいのでしょうか?
現在、psutil のバージョンは、5.5.1 になっております。
python は、2.7.16 と、python 3.7.3 が入っております。
自分で試したこと
・pip3 uninstall psutil としても同様のメッセージでアンインストールできません。
・pip uninstall psutil
サポート切れの警告とともに、インストールされていないと出ます。
#pip uninstall psutil
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
WARNING: Skipping psutil as it is not installed.
・pipdeptree にて、依存関係があるか確認しましたが、あるように見えません。
# pipdeptree | grep psutil
psutil==5.5.1
・pip3 install --upgrade psutil
も実行したのですが、結果は同じでした。
# pip3 install --upgrade psutil
Collecting psutil
Installing collected packages: psutil
Found existing installation: psutil 5.5.1
Cannot uninstall 'psutil'. 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.
・Anaconda とのバッティング・・・みたいな感じの記事もみたので、
入っていたりして・・と思いながら実行してみましたが、動かないのでないと思います。(これで確認になっているか?)
# conda
conda: command not found