要求
Requires Python > 3.4 and pip >= 19.0
pip修改源
配置文件1
2
3
4
5cd ~
mkdir .pip
cd .pip
touch pip.conf
vi pip.conf
配置1
2
3
4
5[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
安装Tensorflow1.8
1 | source venv/bin/activate |
消除FutureWarning1
pip install numpy==1.13.3
Hello
1 | import tensorflow as tf |