Cannot install GFX HAT library

I have a problem with installation of GFX Hat library.

curl https://get.pimoroni.com/gfxhat | bash

Results:

...
Installing GFX HAT library for Python 2...

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: gfxhat in /usr/local/lib/python2.7/dist-packages (0.0.1)
Requirement already satisfied: cap1xxx in /usr/lib/python2.7/dist-packages (from gfxhat) (0.1.3)
Requirement already satisfied: sn3218 in /usr/lib/python2.7/dist-packages (from gfxhat) (1.2.7)
Requirement already satisfied: RPi.GPIO in /usr/lib/python2.7/dist-packages (from cap1xxx->gfxhat) (0.6.3)

Installing GFX HAT library for Python 3...

install: missing destination file operand after 'gfxhat'
Try 'install --help' for more information.

How can I resolve this problem?

Greetings, M

May be worth just attempting sudo pip3 install gfxhat or sudo pip install gfxhat depending on whether you plan to use Python 3.x or 2.x.

I haven’t seen this error crop up before but a cursory glance suggests that it’s because the installer can’t find pip3, pip-3.3 or pip-3.2 on your system and fails to an empty $PIP3_BIN turning the pip3 install command into simply install - if you run just install gfxhat then the error you’re seeing is exactly what you’ll get.

To help me figure out why this is happening, what do you see if you run: lsb_release -a?

I resolved main problem.
It turned out that my pip / pip3 setup is broken (after pip/pip3 upgrades I think).

However I see another errors:

curl https://get.pimoroni.com/gfxhat | bash

Results:

Checking for packages required for GPIO control...
Unable to install RPi.GPIO for python 3!

SPI already enabled

Checking packages required by SPI interface...
Unable to install spidev for python 3!

I2C already enabled

And… at the end I have:

Some packages could not be installed, review the output for details!

But… it tools like that library works and examples were installed.
Overall: GFX HAT works but I’m not sure that everything was properly installed.

Regards,
M