Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
6.4.2
-
None
-
-
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.