目次

パッケージをアンインストールする - Python

パッケージをアンインストールするコマンドを紹介します。

概要

Pythonでパッケージをアンインストールする場合には、pipコマンドを利用します。

書式

pip uninstall (パッケージ名)
または
python -m pip uninstall (パッケージ名)

Windows環境の場合には、pip.exe を実行する方法もあります。
pip.exe uninstall (パッケージ名)
または
python.exe -m pip uninstall (パッケージ名)

PowerShellでの実行例
.\pip.exe uninstall tensorflow
著者
iPentecのメインプログラマー
C#, ASP.NET の開発がメイン、少し前まではDelphiを愛用
掲載日: 2023-05-13
iPentec all rights reserverd.