tensorflow-gpu installation tutorial

1. (If the python environment has not been installed, skip this step).
Go to the control panel program uninstallation to uninstall all python and anaconda on the computer and pay attention to clean up the environment variables (if your python version is 3.7 and above, skip this step)

2. (If you haven't installed cuda, skip this step) Go to the control panel program uninstallation, uninstall all programs with the word cuda, and restart the computer.

3. Install the anaconda linked below, and pay attention to adding environment variables when installing. Link:
Link: https://pan.baidu.com/s/1B4a4stK1Ke0k6NCP4Fyt0g
Extraction code: xot3

When installing anaconda, pay attention to the following two screenshot options
Insert picture description here
Insert picture description here
4, install cuda10 and the corresponding cudnn (if your computer is already cuda10, skip this step). The following link: https://pan.baidu.com/s/1Cdv8yVbdjRPGusMjPXbqAw
Extraction code: 3pqm

When installing cuda, remember to choose a custom installation. Refer to the screenshot:
Insert picture description here
Then unzip cudnn to get the cuda folder, open the cuda folder, copy everything inside, and paste it to this location (overwrite and replace the original):
Insert picture description here
6. Install tensorflow 2.0 GPU version (input in the command line window):
pip install tensorflow-gpu==2.0 -i https://pypi.douban.com/simple

Guess you like

Origin blog.csdn.net/qq_42005540/article/details/111941929