1

I'm trying to install the latest HPLIP following this guide. To summarize you perform the following:

sudo apt-get purge hplip hplip-data hplip-doc hplip-gui hpijs-ppds libsane-hpaio printer-driver-hpcups printer-driver-hpijs

sudo rm -rf /usr/share/hplip/

sudo apt-get autoremove

Then you download the latest HPLIP and install via this guide (ie sh hplip-3.20.2.run and accept all defaults). I'm installing on Ubuntu 20.04 which I believe utilizes Python 3, not Python 2. It appears that for this reason the HPLIP installer errors out with:

...
checking python2.7m... no
...
error: cannot find python-devel support

Is the only way out of this issue to switch my 20.04 installation to a Python 2 version? I'd prefer to leave this 20.04 install on Python 3.

Display name
  • 2,331

2 Answers2

2

You can always install python2 by running

sudo apt install python2

It won't change anything with python3.

Pilot6
  • 92,041
1

Firstly, there are lots of users who appear to regard upgrading to the latest version of HPLIP as some sort of solution. But, with rare exceptions, they never say what the problem is, as is the case here. This then involves lots of other users in seeking a solution to an unknown problem that may not exist in the first place.

With few exceptions, the HPLIP version in Ubuntu 20.04 should be suitable for the vast majority of users who choose to use it.

Secondly, anyone with a modern HP printer doesn't need HPLIP. It is their choice to use it, but HPLIP is redundant. oldfred's contribution points that up.

Thirdly, unless I have missed it, there isn't any mention of the device model. Suggesting alternatives to the present course of action becomes impossible. Legacy printer versus modern printer would determine the advice given.

brian_p
  • 916