TensorFlow development environment setup with Anaconda (windows)

本文介绍了如何使用Anaconda在Windows上安装TensorFlow开发环境。首先,确保系统为64位,然后安装最新版Anaconda。由于TensorFlow不支持Python 3.7,需要将Anaconda降级到Python 3.6.8。通过命令行使用pip安装TensorFlow,如果遇到问题,可以强制重新安装,并通过运行Python验证TensorFlow是否成功安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

TensorFlow is an open-source software library for data flow programming across a range of tasks. It is a symbolic math library, and is also used for machine learning applications such as neural networks. It is used for both research and production at Google.‍

It is broad used by world level enterprises, and the best open source library for individual developer to explore this area.

The open source Anaconda Distribution is the fastest and easiest way to do Python and R data science and machine learning on Linux, Windows, and Mac OS X. It’s the industry standard for developing, testing, and training on a single machine.

Here I will introduce how to install TensorFlow with Anaconda.

Install Anaconda latest version which is Python 3.7 version

By the way, before installing of TensorFlow, make sure your OS and Machine are all 64 bits, which is the basic requirement from TensorFlow.
After installation of Anaconda, please run the Anaconda Promote from start menu with administrator authority, which is the command line console.
在这里插入图片描述

It already supported the virtual environment.

Downgrade Anaconda to Python 3.6.8

Since the TensorFlow cannot support Python 3.7, we need to downgrade Anaconda to 3.6.8 first.
By using command line

conda install python=3.6.8

Then waiting for the solving environment finished
在这里插入图片描述

Install TensorFlow by pip

By using command line

pip install --upgrade pip

to upgrade the pip, then install TensorFlow

pip install --upgrade tensorflow

If installation failed, you can use

pip install --ignore-installed tensorflow

to force reinstall.

Finally using

python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"

to verify installation success
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值