#记录一下安装tensorflow
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
yum -y install epel-release python-pip python-devel
pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip3 install --upgrade pip
pip3 install setuptools
pip3 install tensorflow
pip3 install -U numpy==1.16.0//版本过高会报错
在centos7上安装tensorflow
最新推荐文章于 2020-12-18 18:19:45 发布