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

前端 未结 12 2462
我在风中等你
我在风中等你 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:57

    The three things that get installed that you will need to delete are:

    1. Packages/modules
    2. Scripts
    3. Data files

    Now on my linux system these live in:

    1. /usr/lib/python2.5/site-packages
    2. /usr/bin
    3. /usr/share

    But on a windows system they are more likely to be entirely within the Python distribution directory. I have no idea about OSX except it is more likey to follow the linux pattern.

提交回复
热议问题