官术网_书友最值得收藏!

Installing TensorFlow CPU

We mentioned earlier that TensorFlow is not currently stable with Python 3.7. Therefore, we will use Conda to install TensorFlow rather than using pip. Conda deals with it in a unique way. As soon as you issue the following command to install TensorFlow, Conda also downloads and installs the other required packages. It also restores Python to the version with which TensorFlow is known to be stable, say Python 3.6.8! Type the following commands into the Terminal window (except the mentioned comments) to install TensorFlow CPU:

# go to the deep_learning directory
cd deep_learning

# activate the environment
conda activate test_env

# install TensorFlow CPU
conda install tensorflow

After the installation, you can run Python to check whether Conda has restored the version or not.

The commands mentioned are as per the time of publishing this book. You must know that the libraries and repositories keep on changing. In case the commands don't work properly, it is advised to check for the latest updates from the source.
主站蜘蛛池模板: 东海县| 肥西县| 黄龙县| 尚义县| 镇康县| 武汉市| 闵行区| 合作市| 什邡市| 崇明县| 沐川县| 厦门市| 嘉义县| 岳阳县| 双辽市| 堆龙德庆县| 普定县| 罗城| 北碚区| 库车县| 长海县| 龙山县| 屏边| 萍乡市| 扶绥县| 神农架林区| 太原市| 漳平市| 新丰县| 贵州省| 达日县| 虹口区| 永靖县| 万山特区| 阿鲁科尔沁旗| 衡南县| 杨浦区| 吐鲁番市| 清原| 屏山县| 绥江县|