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

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.
主站蜘蛛池模板: 武宁县| 永和县| 高陵县| 如皋市| 义乌市| 敦煌市| 余庆县| 建阳市| 博乐市| 越西县| 廉江市| 桂东县| 井陉县| 湖南省| 江达县| 伊春市| 南漳县| 柞水县| 垣曲县| 醴陵市| 宜城市| 辰溪县| 高唐县| 甘洛县| 大连市| 白朗县| 额敏县| 梓潼县| 定陶县| 沽源县| 城市| 崇阳县| 白城市| 连云港市| 奉贤区| 秦皇岛市| 深水埗区| 梅州市| 灵石县| 鲁甸县| 灵台县|