how to cleanly uninstall my python packages with pip3 or any other way?

前端 未结 1 1123
北海茫月
北海茫月 2020-12-10 12:22

this is my setup.py file for installing my python program, after the installation using python3 setup.py install an entry to my program was created named

相关标签:
1条回答
  • 2020-12-10 13:13

    Instead of python3 setup.py install use:

    pip3 install .
    

    then

    pip3 uninstall abc
    

    This will remove testmain.

    I had the same question today and spent the entire morning trying to figure out why the script wouldn't uninstall. Nothing worked until I saw Ramana's answer here: https://askubuntu.com/questions/38692/how-does-one-remove-applications-installed-through-python-setup-py-install

    "You should always install Python apps with "pip". pip supports uninstall option." and the example in the commment on how local path is supported.

    0 讨论(0)
提交回复
热议问题