Deep learning---Windows VS2015 tensorflow environment configuration

Microsoft's new VS Tools for AI, the link is as follows: Click to open the link

Currently VS2015 and VS2017 are supported. I am a beginner and installed it using 2015. The details are as follows:

Official installation steps: Click to open the link

Download AI TOOL

VS2015: Click to open the link

VS2017: Click to open the link

Note that if you already have other versions of VS installed on your computer, uninstall them first and install VS2015/2017

After installing VS, install AI TOOL, and then you can create an AI project.

I am learning tensorflow, VS does not come with these, so I need to pre-install tensorflow/numpy and other tools:

1. Download PIP and install it

PIP download address: click to open the link

Here select tar.gz compressed package, the latest version is 9.0.1, the version selected here is: pip-9.0.1.tar.gz (md5, pgp)

Unzip the downloaded compressed package to the working directory (such as D:\), open Windows cmd, and run the following command to enter the unzipped pip directory

cd /d D:\pip-9.0.1

Install using the following command

python setup.py install

2. Add environment variables

Add Python's path to the environment variable Path:

eg:

G: \ Python 35 \; G: \ Python35 \ Scripts;

3. Restart cmd and enter the pip command

The help file of pip appears, that is, the installation is successful;

4. Download windows tensorflow

GPU version:

pip3.5 install tensorflow-gpu==1.4.0
CPU version:

pip3.5 install tensorflow==1.4.0

5. Download numpy:

pip3.5 install numpy scipy

6. Install CUDA 8.0

Download link: Click to open the link

After downloading and installing, be sure to configure the environment variables:

CUDA_PATH is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0, but this cannot directly access the packages under bin and lib\x64, just add these two paths to the path.

7. Install cuDnn

Download link: Click to open the link

This download requires registration and filling out a questionnaire, which is a bit more troublesome. After downloading, unzip it, and copy bin, include, and lib to the corresponding folders in the CUDA\v8.0 directory.

The above operations and completion of the Windows Visual studio2015/17 AI tools tensorflow environment configuration, here only take notes for their own use.





Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325861556&siteId=291194637