Google Coral USB Accelerator和RPi 3b + Cant似乎可以运行

时间:2019-12-11 00:36:29

标签: raspberry-pi google-coral

我设法解决了安装问题,但是现在面临将安装链接到我的虚拟环境的另一个问题。 这就是给我的东西

(cv) pi@raspberrypi:~/.virtualenvs/cv/lib/python3.7/site-packages $ ls -s ~/Projects/python-tflite-source/edgetpu edgetpu
ls: cannot access 'edgetpu': No such file or directory
/home/pi/Projects/python-tflite-source/edgetpu:
total 40
4 basic  4 classification  4 demo  4 detection  4 __init__.py  4 learn  4 __pycache__  4 swig  4 test_data  4 utils
(cv) pi@raspberrypi:~/.virtualenvs/cv/lib/python3.7/site-packages $ sudo ls -s ~/Projects/python-tflite-source/edgetpu edgetpu
ls: cannot access 'edgetpu': No such file or directory
/home/pi/Projects/python-tflite-source/edgetpu:
total 40
4 basic  4 classification  4 demo  4 detection	4 __init__.py  4 learn	4 __pycache__  4 swig  4 test_data  4 utils
(cv) pi@raspberrypi:~/.virtualenvs/cv/lib/python3.7/site-packages $ sudo ls -s ~/Projects/python-tflite-source/edgetpu 
total 40
4 basic  4 classification  4 demo  4 detection	4 __init__.py  4 learn	4 __pycache__  4 swig  4 test_data  4 utils
(cv) pi@raspberrypi:~/.virtualenvs/cv/lib/python3.7/site-packages $ python 
Python 3.7.3 (default, Apr  3 2019, 05:39:12) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import edgetpu
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'edgetpu'

我正在关注此博客,但它似乎仍然无法正常工作

https://www.pyimagesearch.com/2019/04/22/getting-started-with-google-corals-tpu-usb-accelerator/

1 个答案:

答案 0 :(得分:0)

好,所以我找到了一种解决方法,将其安装在3b +模型上。 因此您必须将其安装在

/usr/lib/python3/dist-packages/edgetpu

,然后在虚拟环境中可以进行合成器链接。我显然无法从桌面安装或下载文件夹中进行安装。

这就是我用的

pi@raspberrypi:~/.virtualenvs/cv/lib/python3.7/site-packages $ ln -s /usr/lib/python3/dist-packages/edgetpu edgetpu