检查Anaconda是否成功安装:
conda --version
检测目前安装了哪些环境:
conda info --envs
检查目前有哪些版本的python可以安装:
conda search --full-name python
安装python 3.5版本(命令中的tensorflow是一个本地电脑的一个python环境名称不是tensorflow本身):
conda create --name tensorflow python=3.6 

激活环境
conda activate tensorflow
退出环境
conda deactivate

切换源(树莓派系统):

软件源文件地址:/etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

系统源:/etc/apt/sources.list.d/raspi.list

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui

pip源:/etc/pip.conf

index-url=https://pypi.tuna.tsinghua.edu.cn/simple/
extra-index-url= http://mirrors.aliyun.com/pypi/simple/

 

查看当前可以安装的tensorflow

conda search --full-name tensorflow

安装命令:
pip install tensorflow==1.13.2

实体安装包下载地址:https://www.piwheels.org/simple

查看当前python安装的内容:pip list

 

教程来源:

https://blog.csdn.net/weixin_44791964/article/details/104702142
https://blog.csdn.net/qq_27245699/article/details/81050035?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param