Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2200

Uninstalling PySide via "pip uninstall pyside6" leaves entire content of PySide6 directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.4.2
    • PySide
    • None
    • Linux/Wayland, Linux/X11, Linux/Other display system, Windows
    • 4d7667027 (main)

    Description

      Uninstalling PySide via "pip uninstall pyside6" leaves the entire content of the PySide6 directory behind, plus the PySide6_Addons-6.x.y.dist-info and PySide6_Essentials-6.x.y.dist-info directories. The uninstall command displays the following message:

      Uninstalling PySide6-6.4.2:
        Would remove:
          c:\users\adrianghc\anaconda3\lib\site-packages\pyside6-6.4.2.dist-info\*
          c:\users\adrianghc\anaconda3\lib\site-packages\pyside6\*
        Would not remove (might be manually added):
          c:\users\adrianghc\anaconda3\lib\site-packages\pyside6\Qt3DAnimation.pyd
          c:\users\adrianghc\anaconda3\lib\site-packages\pyside6\Qt3DAnimation.pyi
          c:\users\adrianghc\anaconda3\lib\site-packages\pyside6\Qt3DCore.pyd
          c:\users\adrianghc\anaconda3\lib\site-packages\pyside6\Qt3DCore.pyi
          ... etc ...
      

      The contents of the PySide6 directory plus the addons and essentials directories are indeed deleted when the PySide6_Essentials and PySide6_Addons packages are uninstalled. However, this is not intuitive to users who are most likely to install PySide through "pip install pyside6", which installs the aforementioned packages as well, and might expect "pip uninstall pyside6" to also uninstall both packages.

      On the one hand, this process is entirely consistent with how users expect pip to work - dependency packages will not be installed if the top package is uninstalled, as other packages might still need it. On the other hand, the PySide6 package is a somewhat special case, as it has no other purpose than to install the PySide6_Essentials and PySide6_Addons packages, so it is different from a normal package that stands on its own and uses another as a dependency. Or put differently, PySide6_Essentials and PySide6_Addons do not "feel" like dependencies of the PySide6 package.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            adherrma Adrian Herrmann
            adherrma Adrian Herrmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes