Github Code Errors

I’m trying to clone the Github codes, but I’m getting the following errors:

  1. git clone GitHub - sunfounder/robot-hat: Robot Hat python library - This installed with no errors. I had to manually download, extract and sudo.

  2. git clone -b v2.0 GitHub - sunfounder/pisloth: PiSloth from SunFounder > sudo python3 install - I had to manually download, but there is no in this folder.

  3. sudo bash - No such file or directory.

  4. cd /home/pi/piarm/examples > sudo python3 - No such file or directory.

So, I can’t install the library and I can’t zero the servos. Help!

It is recommended that you reinstall the Raspberry Pi system and then go ahead and follow the instructions below to install the source code: install robot-hat library: cd ~/git clone ~/robot-hatsudo python3 install install pisloth library: cd ~/git clone -b v2.0 ~/pislothsudo python3 install install cd ~/ pislothsudo bash