Tensorflow安装卡在100%

时间:2019-04-09 18:46:34

标签: python tensorflow raspberry-pi

我正在尝试使用pip install --no-cache-dir tensorflow命令安装tensorflow。安装卡住了100%。

  

下载https://files.pythonhosted.org/packages/43/27/a6e7dcb8ae20a4dbf3725321058923fec262b6f7835179d78ccc8d98deec/h5py-2.9.0.tar.gz(287kB)

     

100%|█████████████████████████████████| 296kB 4.4MB / s

下载停留在上面的行

1 个答案:

答案 0 :(得分:0)

在安装Tensorflow之前,您可能需要这些依赖项:

sudo apt-get install python3-numpy
sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install python3-dev 
sudo apt-get install libatlas-base-dev
sudo apt-get install gfortran
sudo apt-get install python3-setuptools
sudo apt-get install python3-scipy
sudo apt-get update
sudo apt-get install python3-h5py

然后运行:

wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_armv7l.whl

cp /home/USER/tensorflow-1.8.0-cp35-none-linux_armv7l.whl tensorflow-1.8.0-cp35-none-linux_armv7l.whl

sudo pip3 install tensorflow-1.8.0-cp35-none-linux_armv7l.whl