Edgetpu: Coral Install and example works, but edgetpu import not

Created on 27 Sep 2019  路  5Comments  路  Source: google-coral/edgetpu

I've been folliwing this guide: https://coral.withgoogle.com/docs/accelerator/get-started/

I n the end I run the example to classify an image, it all works.

But this will not work:

root@32d1e00c6940:/coral/tflite/python/examples# python3 -c 'import edgetpu; print("OK") '
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'edgetpu'

What am I missing? I need to get the edgetpu python lib installed...

thx
Sven

runtime

Most helpful comment

@jingw222 You can take a look at these packages.
I believe the edgetpu-2.13.0-py3-none-any.whl is what you are looking for.

All 5 comments

Hi @hansamann -
I have edgetpu installed here:

master鉁椻湕鉁椻湕鉁椻湕 nam% python3.6 -c 'print(__import__("edgetpu").__path__)'
['/usr/lib/python3/dist-packages/edgetpu']

I believe it should be in that directory for you too. Can you check if it's in your sys.path?
python3 -c 'print(__import__("sys").path)'

Ahh @hansamann
Just realized that you are using the tflite_runtime api to run the demo. You can install the new edgetpu api via:

$ sudo apt-get install python3-edgetpu

take a look at this September updates:
https://coral.withgoogle.com/news/updates-09-2019/

Many thx, the new python edgetpu lib helped me. Works. Now using the USB accelerator from my freshly crafted docker image on a rpi4. Very sweet.

Hey,
Installing the Debian package python3-edgetpu works fine but only under global system environment. However how can I import and use edgetpu in my virtual environment? Is there a pypi release available for the package?

@jingw222 You can take a look at these packages.
I believe the edgetpu-2.13.0-py3-none-any.whl is what you are looking for.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fcsalvagnini picture Fcsalvagnini  路  10Comments

powderluv picture powderluv  路  6Comments

rdejana picture rdejana  路  6Comments

FHermisch picture FHermisch  路  3Comments

ankandrew picture ankandrew  路  3Comments