'Pip packages on NAO Robot

I would like to install MQTT packages on my NAO robot but when I try to install them using SSH it does not work stating:

pip command not found

Then I try to install pip, also an error stating pip command not found.

Is there any solution for this?



Solution 1:[1]

You could use get-pip.py to install it on NAO. Then, you can use it to install some Python packages. However, note that no building tool is available on the robot, so the pip packages that depend on compiled binaries cannot be installed.

Solution 2:[2]

  1. Download pip version 18.0 .

  2. Then use Filezilla or any software that you are comfortable with and copy the file into the home/nao/ directory.

  3. on Putty, I used root to install it. not sure if you should be in root or not. Type the commands below, one by one.

    tar -xzvf pip-18.0.tar.gz
    ls                #to see if the pip in extracted
    cd pip-18.0       
    python setup.py install

Then type pip --version to see whether it's installed currently or not.

It works for me on that way; however, you might face issue with openssl issue to install over SSH using pip.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Victor Paléologue
Solution 2 Mehrböd