TensorFlow installation notes (CPU version)

The new computer has a problem with the environment.

First I installed the latest version of the anaconda, the version python3.7. --2019.10.21

Then conda install TensorFlow, conda install keras, no problem. Then start training problems, memory continues to grow, calling gc variable all-out del useless, memory overflow has been to climb, bounced off the program.

Said it might be to find a circle version of the problem, python3.7 does not support TensorFlow, but this problem should be too old, it is now supported. But since the original computer is no problem, and now the computer because 3.7 has a problem, and that exchange or go.

anaconda in the history of open-source software version of mirror sites Tsinghua University, there are: https: //mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

Under version 3.6, and then conda install TensorFlow, conda install keras. This will direct error Failed to load the native TensorFlow runtime in import tensorflow time.

Should not be ah conda actually installed modules will not find, find online a number of ways, conda upgrade --all can be solved, but get that done pandas module was gone, the feeling is still a problem.

Finally decided not to install the conda, pip equipment, installed pip install tensorflow == 1.12, pip install keras == 2.2.4, and now finally the normal use.

Guess you like

Origin www.cnblogs.com/tccbj/p/11715241.html