Error installing sudo pip3 install rpi-rf

After sudo pip3 install rpi-rf
I do get the below output. So I can’t install rpi-rf and with that I can not run the rfrx.py command. Please any advice?

Collecting rpi-rf
  Using cached rpi-rf-0.9.6.tar.gz
Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py", line 387, in setup_py
    import setuptools  # noqa
  File "/usr/local/lib/python3.4/dist-packages/setuptools/__init__.py", line 12, in <module>
    import setuptools.version
  File "/usr/local/lib/python3.4/dist-packages/setuptools/version.py", line 1, in <module>
    import pkg_resources
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named 'packaging'

I did follow all the steps, apt-get update and upgrade.
sudo apt-get install python3-pip gave me the answer, all is up to date. Python3-pip is already the newest version.

Ok, so I ran:
sudo pip3 install --upgrade setuptools
and that somehow now did install the upgrade; afterwards I did:
sudo pip3 install rpi_rf
and that worked now too

1 Like