安装tensorflow
1,安装anaconda
去清华镜像下载对应版本 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
三部曲
1) bash Ana .......sh
2)一路eneter 不安装 vscode
3)
vim ~/.bashrc
若无 export PATH=$PATH:/home/11126897/anaconda3/bin 则在末尾添加 export PATH=$PATH:/home/11126897/anaconda3/bin
source ~/.bashrc 使得anaconda在当前窗口生效
2,升级pip
pip install --upgrade pip
提示
distributed 1.21.8 requires msgpack,which is not installed.
pip install msgpack
3, 安装tf
pip install tensorflow==1.13.2 -i https://pypi.tuna.tsinghua.edu.cn/simple (清华镜像速度快)
4,/home/11126897/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:529: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
去这个文件把这几行
_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)]) 改为 _np_quint8 = np.dtype([(“quint8”, np.uint8, (1,))])