https://www.tensorflow.org/install/install_raspbian
所以如果使用 Python2 安裝,可能會出現這樣的錯誤訊息。
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/serialize.py", line 87, in dumps ).encode("utf8"), MemoryError
解決方法就是加大SWAP空間。
sudo sed -i -e "s/^CONF_SWAPSIZE=.*/CONF_SWAPSIZE=2048/g" /etc/dphys-swapfile cat /etc/dphys-swapfile | grep CONF_SWAPSIZE # CONF_SWAPSIZE=2048 sudo service dphys-swapfile restart
還有
sudo dd if=/dev/zero of=/swap0 bs=1M count=512 sudo mkswap /swap0 sudo vim /etc/fstab === /swap0 swap swap === sudo swapon -a參考資料:http://www.neko.ne.jp/~freewing/raspberry_pi/raspberry_pi_install_tensorflow_deep_learning_framework_fail/
沒有留言:
張貼留言