Setting up the development environment for Chainer with CUDA on Eclipse on Windows 10

The versions we are installing

Perhaps, small difference in versions may not be a big problem.


1. Visual Studio

Visual Studio is required for installing CUDA. Free version (Visual Studio Community) is available.
  1. Download from
  2. Go to Download Visual Studio -> Community 2017
  3. Run the downloaded file.
  4. Select "Desktop development with C++" and install.
  5. Restart the PC as instructed.

2. CUDA Toolkit

  1. Download from
  2. Select Windows -> x86_64 -> 10 -> exe (network) -> Download
  3. Run the downloaded file.
  4. This path can be anywhere. You can leave it unchanged. Then click OK.
  5. Click "AGREE AND CONTINUE" on the software license agreement.
  6. Select "Express (Recommended)" and click "NEXT".
  7. When installation is finished, UNCHECK "NVIDIA GeForce Experience" and Close.
  8. After the installation, it may be good to restart the PC just in case even if not asked.
  9. Official installation guide:

3. GPU driver

This may be installed automatically along with CUDA Toolkit (according to the release notes of CUDA)
If not, you must manually install the NVIDIA GPU driver.

4. CuDNN

  1. Download from
  2. First, you need to register your email address.
  3. Download cuDNN v7.4.1 (Nov 8, 2018), for CUDA 10.0.
  4. Unzip the downloaded file.
  5. If CUDA Toolkit is installed in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA
    • Copy cuda\bin\cudnn64_7.dll to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin
    • Copy cuda\include\cudnn.h to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include
    • Copy cuda\lib\x64\cudnn.lib to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib\x64
    Otherwise copy above 3 files to the place where you installed CUDA Toolkit.
  6. Installation guide:

5. Anaconda

  1. Download Python 3.7 version from
  2. Run the downloaded file.
  3. Next
  4. I Agree
  5. Check "Just Me (recommenced)" and Next.
  6. Destination Folder can be anywhere. You can leave it unchanged. Take a note of this folder and do not forget. Then click Next.
  7. Uncheck "Add anaconda to my PATH environment variable" and check "Register Anaconda as my default Python 3.7" and click "Install".
    If you have already installed other Python environments, you may want to consider unchecking "Register Anaconda as my default Python 3.7".
  8. Next
  9. Skip
  10. Uncheck both and Finish.
  11. It may be good to restart the PC just in case.

6. Chainer & cupy

  1. Open Windows Power Shell by right clicking the start button (or Command Prompt if using Windows 7).
  2. Type the following:
    • .\pip install chainer cupy
    THE_DIRECTORY_OF_ANACONDA is the location where you installed Anaconda. In this example, I installed Anaconda in C:\users\koumura\Anaconda3
  3. The result should look like this.

7. Eclipse

  1. Download the installer from
  2. Run the downloaded file.
  3. Install Eclipse IDE for Java Developers. We are not using Java this time, but we need to install this for PyDev.
  4. The instllation folder can be anywhere. Then click "INSTALL".
  5. Accept
  6. Launch Eclipse by clicking "LAUNCH"
    or launch it from desktop shortcut
  7. You will be asked to choose the directory of your workspace. This is where your source codes will be stored. This can be anywhere. Then click "Launch".
  8. Uncheck "Always show Welcome at start up" and close the tab.
  9. The window should look like this.

8. PyDev

  1. Launch Eclipse.
  2. Go to Help -> Eclipse Marketplace.
  3. In the find box, type "PyDev" and hit Enter. Click "Install".
  4. Click "Confirm".
  5. Check "I accept the terms of the license agreements" and Finish.
  6. Restart.
  7. Go to Window -> Perspective -> Open Perspective -> Other.
  8. Select "PyDev" and Open.
  9. Go to Window -> Preferences.
  10. Go to PyDev -> Interpreters -> Python Interpreter. Click "Browse for python/pypy exe".
  11. Select python.exe in the directory of Anaconda you installed and Open. Interpreter Name can be anything you like.
  12. OK
  13. Click "Apply and Close".
  14. If you get warning from Firewall, check "Private networks" and Allow access.
© 2018-2024 Takuya KOUMURA.