1.Anaconda3 installation
https://www.anaconda.com/distribution/#download-section (mounting step follow the prompts to selectively add path variable)
1) Check the Anaconda is successfully installed:conda --version
. 2) , which detects the current installation environment: conda info --envs
(if you are not safe tensorflow, TensorFlow the line is not is right, this is a screenshot after I An End !!)
3) Check the current version of which can be installed python:conda search --full-name python
4) install python 3.5 version:conda create --name tensorflow python=3.5
Now let display activate tensorflow, follow the prompts to enter activate tensorflow, so that we can enter tensorflow environment, as follows:
Now python3.5 installed on, and then we check the environment: conda info --envs
A pit: According to the official website of instructions:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl
installation failed! !
Pit II: Another try: pip install tensorflow
The installation was successful, I was very happy, run it! After installation is complete, check to see can not be imported: first enter python
Then: input import tensorflow as tf, error: error long, but the main statement is as follows (taken part):
Traceback (most recent call last):
File "C:\Users\Nhan\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Nhan\AppData\Local\Programs\Python\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
ImportError: DLL load failed with error code -1073741795
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
I was thinking: the system is 64-bit, python 3.5 version, tensorflow installation was successful, why would mistake for a few versions of the anaconda or so, the Internet has said: need to install vs, vs lack of environment, then I on the installation of vs, but the problem still exists; but then I see a message saying: 16 years after the tensorflow 1.2 version can be used on windows;
The default version is: tensorflow1.8 or tensorflow1.9 (Note: The default installation has been installed before Tensorflow other packages Tensorflow dependent, such as scipy + mkl etc.)
solution:
First: tensorflow 1.9 uninstall the already installed, open Anaconda Prompt command window, enter pip uninstall tensorflow;
然后:activate tensorflow,再conda search --full-name tensorflow
You can see for python3.5 version can be installed tensorflow1.1 or tensorflow1.2, did not you pick me safe placement of 1.1, security is 1.2! !
Installation command: pip install tensorflow == 1.2, check the installation is successful it! In tensorflow environmental inputs: python, and then enter the import tensorflow as tf