In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to download and install Tensorflow. It is very detailed and has a certain reference value. Friends who are interested must finish reading it.
First, install Python
There are many ways to install Python. We can download the Python installation package that meets your operating system directly from Python's official website and install it directly:
Https://www.python.org/downloads/
However, for friends with zero basic learning Tensorflow, tensorflow and third-party libraries such as opencv and numpy all have dependencies. If the third-party libraries are not installed or the version is incorrect, tensorflow cannot be installed, so I recommend that you use Anaconda to install the python integrated environment.
What is Anacoda?
Anaconda refers to an open source Python distribution, which contains more than 180 science packages and their dependencies, such as conda and Python. After installing Anaconda, you no longer have to worry that installing tensorflow will step into countless holes.
1. Install Anacoda
The download address of Anacoda is:
Https://www.anaconda.com/distribution/
My operating system is Windows 64-bit, so download "64-Bit Graphical Installer".
After the download is complete, double-click to start the installation and select the program installation path
OK, click "Install" to wait for the installation to complete!
After the installation is complete, the terminal enters:
Conda-version
If you output the version number of conda, it means that Anacoda is installed successfully!
Enter y and enter to wait for installation! After the installation is successful, we can use the command to view all available virtual environments:
Conda env list
Then we can use the pip tool provided by python to install tensorflow. Before installing, we change the source of pip to a domestic image and execute the command on the terminal:
Replace with source pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple of Tsinghua University
After the source replacement is successful, start installing tensorflow and execute the command on the terminal:
Pip install tensorflow==1.4
Note: since my cpu is not compatible with version 1.5 or above, I designated to install version 1.4 of tensorflow, which will be used as the standard for future courses.
Tensorflow is divided into cpu version and gpu version, I install the cpu version here, because tensorflow does not support my GPU! To install GPU version of tensorflow, you also need to install CUDA and cuDNN. The installation method is not described in detail here, but if you want to know whether tensorflow supports your graphics card, you can check the GPU card that supports CUDA at the following URL:
Https://developer.nvidia.com/cuda-gpus
After waiting for the installation to be completed, we verify that the tensorflow is installed successfully. The terminal enters the command: python enters the editor, and then enter:
Import tensorflow as tf
If there is no error, the tensorflow1.4 version is installed successfully! If an error similar to the following occurs, your CPU is not compatible with the current version of tensorflow, and you can install the older version of tensorflow to solve the problem.
ImportError: DLL load failed with error code-1073741795 and above are all the contents of this article entitled "how to download and install Tensorflow". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.