准备
这里使用的是Ubuntu 18.04 LTS版本;
第一步,需要先切换Root用户,需要先切换Root用户,需要先切换Root用户,重要的事说三遍!!
su
首次切换前需要设置密码
sudo passwd root
安装Python 3.6
Ubuntu下内置的版本为Python 2.7
,这里需要单独安装Python 3.6
sudo apt install python36 -y
安装Python包管理器(pip)
下载
wget https://bootstrap.pypa.io/get-pip.py
安装
sudo python36 get-pip.py
配置国内的源(你懂的)
sudo pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
安装TensorFlow
安装TensorFlow
sudo pip3 install tensorflow