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

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

    If this is for testing and/or development purposes, setuptools has a develop command that updates every time you make a change (so you don't have to uninstall and reinstall every time you make a change). And you can uninstall the package using this command as well.

    If you do use this, anything that you declare as a script will be left behind as a lingering file.

提交回复
热议问题