“This is the 12th day of my participation in the Gwen Challenge in November. Check out the details: The Last Gwen Challenge in 2021.”
preface
The first weekend after double eleven is a double holiday, everyone “chop” hands? Weekend morning rest at home, afternoon built a set of TensorFlow open source machine learning platform.
We have built a set of Anaconda3 last time, and this time we will build and install TensorFlow open source machine learning platform based on Anaconda3. Those who need to see the installation details of Anaconda3 can navigate to this portal.
Record the detailed process of installing Anaconda3 in Windows
I met TensorFlow
TensorFlow is a symbolic mathematical system based on data flow programming, which is widely used in the programming of various machine learning algorithms. TensorFlow is developed and maintained by Google’s ARTIFICIAL intelligence team, Google Brain. TensorFlow can be installed and run in a variety of client languages, including C and Python, and development languages such as JavaScript, C++, Java, Go and Swift are also being developed.
Core components
- Distributed Master
- Dataflow Executor/Worker Service
- Kernel implementation
- The lowest device layer
- Networking Layer
Fast installation
Conda computing environment
Build a python3.6 conda computing environment named tensorflow. Enter:
conda create -n tensorflow python=3.6
Copy the code
After the command is executed, the -* result is as follows
Start automatic installation of a TensorFlow environment
Activate the environment
To activate the TensorFlow environment, activate it with the following command:
activate tensorflow
Copy the code
Switch under TensorFlow
Install TensorFlow
Next, in the environment created above, to install TensorFlow, run the following command:
pip install tensorflow
Copy the code
Installation has started.
The installation process takes a long time and may take a period of time.
TensorFlow is installed, as shown in the following figure
Check installation
After TensorFlow is installed, you need to run the following command to check whether TensorFlow is successfully installed.
python import tensorflow as tf
Copy the code
Print (tf) __version__)Copy the code
Viewing the Installed Version
After the installation is successful, type the following code to test:
hello = tf.constant("hello, tensorflow! ")
sess = tf.Session()
print(sess.run(hello))
Copy the code
Matters needing attention
- To use TensorFlow, enter Activate TensorFlow in CMD to activate the Conda environment
- Exit the TensorFlow environment and enter the deactivate command
- Conda info –envs
The following two figures are screenshots of the implementation considerations
conclusion
TensorFlow is an open source machine learning platform based on Anaconda3. If there are shortcomings, welcome comments and corrections. See you next time.
About the author: [Little Ajie] a love tinkering with the program ape, JAVA developers and enthusiasts. Public number [Java full stack architect] maintainer, welcome to pay attention to reading communication.