原因 anaconda中安装的python环境中没有pip3 前往安装目录下的Scripts文件夹中查找,发现没有pip3. 解决方案 pip3安装于anaconda 在anaconda Prompt中输入命令: easy_install.exe pip 等待片刻安装完成。 安装tensorflow: 使用国内镜像,输入一下代码到anaconda Prompt,其中(1.15.0是版本,如果安装2.1.0则相应的修改 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.15.0 测试安装成功与否: 输入一下代码,显示版本信息 import tensorflow as tf print(tf.__version__) tensorflow 使用的其他命令 tensorflow卸载命令 pip uninstall tensorflow