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

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.
主站蜘蛛池模板: 读书| 北碚区| 宝应县| 南城县| 商南县| 托克逊县| 崇信县| 长武县| 夏河县| 阿坝县| 大同市| 华宁县| 高要市| 柘荣县| 专栏| 罗平县| 鹤山市| 蚌埠市| 巴林右旗| 白银市| 屏东市| 遵义市| 河南省| 肇源县| 子洲县| 临湘市| 田林县| 军事| 常州市| 昌吉市| 岑巩县| 扬州市| 民丰县| 开化县| 丹东市| 柏乡县| 胶南市| 贵南县| 宣化县| 乌兰浩特市| 东兰县|