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

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.
主站蜘蛛池模板: 华宁县| 临江市| 平原县| 宿州市| 丰原市| 明水县| 玛曲县| 通化市| 会同县| 昭平县| 海晏县| 清苑县| 曲沃县| 荆门市| 临澧县| 贞丰县| 思南县| 天祝| 乌兰察布市| 夏邑县| 分宜县| 宁波市| 蚌埠市| 沙河市| 六盘水市| 剑河县| 浮山县| 宜宾县| 郴州市| 三亚市| 曲阜市| 新干县| 镇赉县| 额尔古纳市| 磐石市| 宝鸡市| 瑞金市| 丘北县| 贡山| 遂溪县| 井陉县|