Skip to content

Latest commit

 

History

History
54 lines (29 loc) · 2.44 KB

INSTALL_ON_WINDOWS.md

File metadata and controls

54 lines (29 loc) · 2.44 KB

Install GCC on Windows

Preface

C++ kernel for Jupyter is mainly supported for Linux and macOS, so keeping on Windows requires additional setup for the C++ kernel on the Windows platform.

We apologize for this extra setup bothers you >.<

Download and extract GNU Compiler Collection (GCC) for Windows

To install GCC, you may need to download some compilers from WinLibs. Scroll down to download one of these compilers:

image

I recommend downloading the latest GCC version (in .zip format), with all the features.

Once downloaded, extract it into any folder that makes GCC stay for a long time. (Downloads, Documents, and temp folders are not recommended, because any of those can be deleted easily (by accident, or by system cleanup features).

In this demonstration, I extract the folder into C:\

image

Once extracted, go to the folder you just extracted, then go to the bin folder. If you can see the g++.exe and gcc.exe, you are looking good!

image

Add to path binary folders of GCC for Windows

On your keyboard, press Windows key + R to see the run dialog, then enter SystemPropertiesAdvanced.exe. You may see this window appear:

image

Click on the Environment Variables..., and you will see the Environment Variables dialog open.

image

In the System variables, scroll down to see Path Variable, then click Edit

Add New variable, copy the GCC bin path to the variable, then paste it into the variable

image

Once you have done this, click Ok to save all changes.

Check the installed GCC

If you are unsure whether the GCC is installed properly or not, try this command on the Command Prompt

gcc -v
g++ -v

image