树莓派超级计算机

  1. 安装mpi4py https://www.youtube.com/watch?v=bBpKq3Y-E2g&list=PLlF2F_XFTTKI2lGpp-tDRthxVCqRG6gNz

http://www.tinkernut.com/2014/04/make-cluster-computer/

http://www.tinkernut.com/2014/05/make-cluster-computer-part-2/


 

cd ./mpi4py-2.0.0

mpiexec -n <numofprocessor> python demo/helloworld.py


 


 


 

  1. 安装opencv3 http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/

source ~./profile

workon cv

python

import cv2


 


 


 

  1. 安装tensorflow

https://github.com/samjabrahams/tensorflow-on-raspberry-pi#installing-from-pip

https://github.com/samjabrahams/tensorflow-on-raspberry-pi/blo

另一种方式:https://github.com/samjabrahams/tensorflow-on-raspberry-pi

python3

import tensorflow


 


 

  1. 安装Google Assistant https://developers.google.com/assistant/sdk/prototype/getting-started-pi-python/run-sample


https://pypi.python.org/pypi/google-assistant-sdk

进入虚拟Python命令:source gooassistant/bin/activate

退出:deactivate

音频设备查看:arecord -l aplay -l 查看card和device

音频录制:arecord -d 10 -D plughw:<cardid>,<deviceid> test.wav ///默认保存在/home/pi

执行命令:google-assistant-demo


 


 


 


 


 


 


 

  1. 备份


 

scp -r filename.py <ip address>:/home/pi

mpiexec -r machinefile -n 1 python filename.py

发表评论

电子邮件地址不会被公开。 必填项已用*标注