Search code examples
androidpythonadbraspberry-pi3

Configuring Python 3 on a Raspberry Pi 3 running Android things


I have been following the following tutorial: https://codelabs.developers.google.com/codelabs/androidthings-assistant/#2

When I get to configuring the virtual python environment I get this: rpi3:/ # python3 /system/bin/sh: python3: not found

I restarted the adb with adb root, but this doesn't correct the issue. As well using su 0 apt-get update produces that apt-get isn't found. Am I using the command incorrectly here?


Solution

  • Well, as it turns out perhaps I didn't understand the documentation here. I was getting hung up on the python configuration of the credential.json file. The problem was where I was attempting to do this, which was on the Raspberry Pi running Android things. Which was not needed. Attempting to install python and the virtual environment on the Pi. I ended up creating the credential file on a different machine. My mistake was thinking the development machine meant my Pi, rather than where I am working in Android Studio etc.