View: 7|Reply: 0

ModuleNotFoundError: No module named 'Adafruit_PCA9685'

[Copy link]

0

Threads

0

Posts

2

Credits

Newbie

Rank: 1

Credits
2
Post time 2024-7-20 19:24:26 | Show all posts |Read mode
Edited by 1721472923 at 2024-7-20 07:49 PM

Hi,

I'm using Pi Car Pro ADR019 Robot with RPI 3  B+,connected with a Pi camera and Robot Hat board. I'm following theLesson 3 for installing required softwares,

3.8 Downloading thecode program to control the robot


3.9 Installing thedependency library of program

If you used"Download the official Raspbian image file" to write theimage file to the SD card,
you can refer tothis section to install the dependent libraries.

$ sudo python3 adeept_picarpro/setup.py
"
...
error:externally-managed-environment

× This environmentis externally managed
╰─> Toinstall Python packages system-wide, try apt install
    python3-xyz,where xyz is the package you are trying to
    install.

    If you wish toinstall a non-Debian-packaged Python package,
    create a virtualenvironment using python3 -m venv path/to/venv.
    Then usepath/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you havepython3-full installed.

    For moreinformation visit http://rptl.io/venv

note: If you believethis is a mistake, please contact your Python installation or OSdistribution provider. You can override this, at the risk of breakingyour Python installation or OS, by passing --break-system-packages.
hint: See PEP 668for the detailed specification.
...
"

3.10 Whether thedependent library is installed successfully

$ sudo killall python3

pi@raspberrypi:~ $ sudo python adeept_picarpro/server/webServer.py
"
Traceback (mostrecent call last):
  File"/home/pi/adeept_picarpro/server/webServer.py", line 11, in<module>
    importAdafruit_PCA9685
ModuleNotFoundError:No module named 'Adafruit_PCA9685'
"
I just do not understand what I did wrong ?

Regards

Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules