How do you uninstall a python package that was installed using distutils?

前端 未结 12 2463
我在风中等你
我在风中等你 2020-11-30 00:36

Can you simply delete the directory from your python installation, or are there any lingering files that you must delete?

12条回答
  •  生来不讨喜
    2020-11-30 00:39

    It varies based on the options that you pass to install and the contents of the distutils configuration files on the system/in the package. I don't believe that any files are modified outside of directories specified in these ways.

    Notably, distutils does not have an uninstall command at this time.

    It's also noteworthy that deleting a package/egg can cause dependency issues – utilities like easy_install attempt to alleviate such problems.

提交回复
热议问题