樹莓派上安裝keras報錯

2021-10-08 21:34:24 字數 1068 閱讀 9307

使用pip3 install keras安裝

錯誤資訊:command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-cwpgusge --no-warn-script-location --no-binary :none: --only-binary :none: -i --extra-index-url -- wheel setuptools cython>=0.29.18 "numpy==1.14.5; python_version=='3.6' and platform_system!='aix'" "numpy==1.14.5; python_version=='3.7' and platform_system!='aix'" "numpy==1.17.3; python_version>='3.8' and platform_system!='aix'" "numpy==1.16.0; python_version=='3.6' and platform_system=='aix'" "numpy==1.16.0; python_version=='3.7' and platform_system=='aix'" "numpy==1.17.3; python_version>='3.8' and platform_system=='aix'" pybind11>=2.4.3" failed with error code 2 in none

解決:看程序在安scipy時停止,單獨用pip安scipy也出錯

先使用apt-get安scipy

sudo apt-get install python3-numpy python3-scipy
再pip3 install keras,注意keras版本要和tensorflow匹配不然用的時候會提示版本不對要重新安

選擇keras版本

pip3 install keras==2.25

樹莓派上安裝docker

樹莓派是安裝的raspbian,基於debian,所以直接去docker官網先看看有沒有debian安裝資料,結果順便就找到了樹莓派的docker安裝指令碼。如下 install using the convenience script 安裝方法 獲取安裝指令碼 curl fssl get.dock...

在樹莓派上安裝OpenVINO

準備工作 這裡我推薦2019 r3版本,之前裝了2020版本不好用,又退回到了2019 r3版本 開啟終端,執行命令 cd downloads 3.建立乙個安裝資料夾 sudo mkdir p opt intel openvino 4.解壓安裝包到安裝路徑下 sudo tar xf l openvi...

在樹莓派上安裝ubuntu

版本 raspberry pi 3 ubuntu 16.04 preinstalled server armhf raspi3.img.xz 4g image,216m compressed 解壓檔案,得到近4g映象檔案 修改密碼 sudo apt get update sudo apt get i...