[PyQt] Uninstalling a wheel
phil at riverbankcomputing.com
Thu Feb 16 10:24:25 GMT 2017
On 16 Feb 2017, at 10:11 am, Damon Lynch <damonlynch at gmail.com> wrote:
> On Thu, Feb 16, 2017 at 3:43 AM, Phil Thompson <phil at riverbankcomputing.com> wrote:
> On 16 Feb 2017, at 7:47 am, Damon Lynch <damonlynch at gmail.com> wrote:
> > Hi Phil,
> > The docs say 'pip3 uninstall pyqt5' is sufficient, but on my install at least if I didn't remove sip.so from python's site-packages, segfaults result. Perhaps it's different on Mac / Windows? I have no idea.
> uninstall doesn't uninstall dependencies. However installing PyQt v5.8 should update any existing SIP version to the required level.
> Yes it's correct that the wheel created sip.so in the site-packages directory during the pip3 install, as expected. And when running the uninstall, as you've also noted, sip.so is not removed. The problem is, unless that sip dependency is manually removed, any attempt to use PyQt5 results in python3 segfaulting.
> If pip3 uninstall can't remove sip.so my suggestion is to update the docs to alert the user that they may need to manually remove the file.
As I said, when you install PyQt v5.8 it *should* automatically update sip to the required level - at least it does for me. So there is no need to manually remove the file.
More information about the PyQt