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

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.
主站蜘蛛池模板: 台北县| 张家界市| 建始县| 瓮安县| 庆城县| 策勒县| 云南省| 尉犁县| 上林县| 西乌珠穆沁旗| 彭泽县| 宝坻区| 理塘县| 塘沽区| 醴陵市| 垣曲县| 镇江市| 珠海市| 黄陵县| 松阳县| 丹棱县| 尚义县| 南安市| 来宾市| 万荣县| 娱乐| 祁东县| 英山县| 石城县| 兴业县| 镇安县| 澳门| 临颍县| 巴彦县| 高雄县| 大港区| 治多县| 嵩明县| 祁连县| 乐山市| 庆云县|