HP printer install fail

I have a failed install of Hp printer at http://hplipopensource.com/hplip-web/install/manual/distros/ubuntu.html What I need help with is how do I Delete the printer software so I can reinstall. Also am I python 2 or 3? in 16.04 64 bit? I accidentally downloaded HPLIP double clicked the file and got an error message and clicked continue. Then I attempted a manual install i got

:~$ sudo hp-setup
[sudo] password for  

HP Linux Imaging and Printing System (ver. 3.16.3)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: HPLIP is not installed properly or is installed without graphical support. Please reinstall HPLIP
warning: Qt/PyQt 4 initialization failed.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.

Also,

I had an error when using: Ubuntu 15.10 and 16.04 in python3 environment:

seemed to run when i used: Ubuntu 12.04 and above in python2 environment:

I have no idea whether I am python3 or python2.

I think once I know whether I am python3 or python2 I need to know how to completely uninstall my mistakes and then attempt a reinstall. I am a beginner so I may need to cut and paste the code for deleting my messed up install.

I am installing a HP officejet pro 8600. I can scan with simple scan and I print with my brother laserjet. Should i give up and just use simplescan since my 8600 does not even have ink. I was trying to get better scanning software.

Thank you for looking and any help.

Jon


Solution 1:

you should run this

sudo apt-get install python3-pyqt4

and for Ubuntu 18.04, you will need both pyqt4 and pyqt5

sudo apt-get install python3-pyqt5

font: https://help.ubuntu.com/community/HpAllInOne

Solution 2:

It looks like it is complaining about stuff that should be installed. Actually, you should not have to "download" anything as all of this stuff is available through apt-get.

Run the following commands to install all needed software and drivers:

sudo apt-get update
sudo apt-get install hplip hplip-data hplip-doc hpijs-ppds hplip-gui hplip-dbg printer-driver-hpcups printer-driver-hpijs printer-driver-pxljr

Now, run one of the following commands:

/usr/bin/hp-setup --gui

or if that fails due to permission issues, run this instead:

sudo -i /usr/bin/hp-setup --gui

This version, 3.16.3, is the same version available from the hp website.

Please post any errors.