Recently need to use TensorFlow, but under Windows TensorFlow installation is very unfriendly, there are a lot of problems, toss for a long time to calculate the success of installation. The installation process is recorded here for your reference.
In the beginning is according to online posts installed on-line, a number of consecutive attempts or failure, from the Internet (http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy A very good python installation package download URL) downloads the latest tensorflow1.0 installation package. Then go into the Anaconda prompt and start the installation, as shown in the following figure:
Appear successfully installed tensorflow-1.0.1 words, it shows that TensorFlow has been installed successfully, we can enter the next Test link. Before testing, one thing to note is that each time you use TensorFlow, you first enter activate TensorFlow, and then you enter the TensorFlow workspace. As shown in the following illustration:
Then write a simple matrix multiplication test, as shown in the following figure:
However, the above installation only implemented the use of TensorFlow in the command line, the import in the Anaconda still failed, and then tried several times. You can successfully install TensorFlow by installing TensorFlow in the Anaconda installation directory lib\site-packages, and then switching to the directory at the command line, and then performing the PIP Install command.
After testing, at this time anaconda already can normal import tensorflow.