・パッケージのインストール先を確認(Location)
$ pip show scikit-learn
Name: scikit-learn
Version: 1.1.0
Summary: A set of python modules for machine learning and data mining
Home-page: http://scikit-learn.org
Author:
Author-email:
License: new BSD
Location: /Users/hoge/opt/anaconda3/lib/python3.8/site-packages
Requires: joblib, numpy, scipy, threadpoolctl
Required-by:
・パッケージ確認(scikit-learn)
※.dist-infoディレクトリはパッケージメタデータの格納先
$ ls -apl /Users/sou/opt/anaconda3/lib/python3.8/site-packages | grep learn
drwxr-xr-x 9 sou staff 288 Jan 19 20:43 scikit_learn-1.1.0.dist-info/
drwxr-xr-x 55 sou staff 1760 Jan 19 20:43 sklearn/
・パッケージ消去
$ sudo rm -rf sklearn scikit_learn-0.23.2.dist-info
・もう一度インストール