基于ARM64麒麟V10系统编译安装tensorflow

基于ARM64麒麟V10系统安装tensorflow

本篇基于ARM64架构编译安装tensorflow深度学习框架,不支持GPU

安装环境

名称版本
LinuxkylinV10
python3.7.4
tensorflow1.15

离线包准备

需要提前配置好Yum源和准备好相关离线安转包

在这里插入图片描述
在这里插入图片描述

直接安装

直接执行脚本即可

#!/bin/bash
yum -y install python3-pip

tar -xf hdf5.tar.gz -C /usr/include/
export CPATH="/usr/include/hdf5/include/:/usr/include/hdf5/lib/"

ln -s /usr/include/hdf5/lib/libhdf5.so  /usr/lib/libhdf5.so
ln -s /usr/include/hdf5/lib/libhdf5_hl.so  /usr/lib/libhdf5_hl.so

yum -y install python3-Cython.aarch64

yum -y install python3-h5py.aarch64

yum -y install python3-grpcio.aarch64

yum -y install python3-numpy.aarch64

tar -xf tensor-dependence.tar.gz 

cd /home/tensorflow-1.15-v10/tensor-dependence/google_pasta &&
pip3.7 install six-1.15.0-py2.py3-none-any.whl  &&
pip3.7 install google_pasta-0.2.0-py3-none-any.whl && cd ..

cd ./Keras_Preprocessing- &&
pip3.7 install Keras_Preprocessing-1.1.2-py2.py3-none-any.whl && cd ..

cd ./termcolor && tar -xf termcolor-1.1.0.tar.gz && cd termcolor-1.1.0 && python3.7 setup.py install && cd ../../ &&

cd absl-py/ &&  
pip3.7 install absl_py-0.12.0-py3-none-any.whl && 
cd .. &&

cd protobuf/ && 
pip3.7 install protobuf-3.15.6-py2.py3-none-any.whl && 
cd .. &&

cd wheel/ && 
pip3.7 install wheel-0.36.2-py2.py3-none-any.whl && 
cd .. &&

cd tensorflow-estimator/ &&
pip3.7 install tensorflow_estimator-1.15.1-py2.py3-none-any.whl  && 
cd .. &&

cd gast/ && tar -xf gast-0.2.2.tar.gz && cd gast-0.2.2/ &&
python3.7 setup.py install && cd ../../ &&

cd keras-applications && 
pip3.7 install Keras_Applications-1.0.8-py3-none-any.whl &&
cd .. &&

cd wrapt/ && tar -xf wrapt-1.12.1.tar.gz && cd wrapt-1.12.1 &&
python3.7 setup.py install &&
cd ../../ &&

cd setuptools &&
pip3.7 install setuptools-54.1.1-py3-none-any.whl &&
cd ../ &&

cd  tensorboad && 
yum -y install python3-grpcio.aarch64 &&
pip3.7 install Werkzeug-1.0.1-py2.py3-none-any.whl &&
pip3.7 install zipp-3.4.1-py3-none-any.whl && 
pip3.7 install typing_extensions-3.7.4.3-py3-none-any.whl &&
pip3.7 install importlib_metadata-3.7.3-py3-none-any.whl &&
pip3.7 install Markdown-3.3.4-py3-none-any.whl && 
pip3.7 install tensorboard-1.15.0-py3-none-any.whl &&

cd ../astor &&
pip3.7 install astor-0.8.1-py2.py3-none-any.whl && 

cd ../opt_einsum && 
pip3.7 install opt_einsum-3.3.0-py3-none-any.whl &&

cd ../.. &&
pip3.7 install tensorflow-1.15.0-cp37-cp37m-linux_aarch64.whl 

资源下载链接

https://download.csdn.net/download/YYC1503/18904018

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

可耐的牛牛

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值