在 windows 上卸载 distutils 安装的项目?

Uninstall a distutils installed project on windows?

我需要在 windows 上卸载我的 pywin32 软件包并重新安装一个不同的版本。当我尝试使用 pip uninstall pywin32 时,我得到 this error message saying "It is a distutils installed project". I assume this is because it was originally installed by an installation program, and not pip. However, the installer did not come with an 'uninstall' option. I've also tried pip install --upgrade --force-reinstall --no-cache-dir pywin32‑227‑cp27‑cp27m‑win_amd64.whl to try and overwrite with the new package, but I get the same error。另外,因为我在 windows 上,所以我不能使用 sudo apt-get 之类的东西。显然我也尝试过手动删除安装文件夹但可能遗漏了一些文件?有什么想法可以卸载它并安装我的新软件包吗?如果需要,我可以找到一种方法 post 我使用的原始安装可执行文件。

在相关说明中,这是为了解决 larger issue that prompted me to install pywin32 in the first place. Once I installed through an installer called pywin32-219.win32-py2.7 I got this 错误消息。我是否在正确的轨道上修复此错误?

事实证明,使用安装程序可执行文件安装的任何东西都正式存储为程序,即使它是单个 python 包。在这种情况下,系统可以通过控制面板 -> 卸载程序卸载最初安装的 pywin32-219 包。然后可以使用 pip 安装新包,问题就解决了。