1、下载 Anaconda3 

https://www.anaconda.com/distribution/

2、下载完双击安装。

说明:

(1)原先独立安装的python可以不用卸载,只需删除环境变量配置即可。

(2)安装完成后,会提示是否安装vcode编辑器,可以不安装。

3、安装tensorflow

安装 tensorflow 支持 cpu 版本。

pip install tensorflow

说明:

(1)如果报错:distributed 1.21.8 requires msgpack, which is not installed.

只需按照msgpack即可

pip install msgpack

(2)如果报错:Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

只需升级 conda所有包 即可。

conda update --all

4、环境变量配置。

5、tensorflow 版本查看。

python

import tensorflow as tf

tf.__version__

6、Idea python SDK 配置。

一起学习

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐