How to Install CMake for Windows in Python?

CMake is a cross-platform free and open-source software tool for managing the build process of software using a compiler-independent method. It supports directory hierarchies and applications that depend on multiple libraries.

Installation of CMake

CMake in Python can be easily installed with the use of pip package management tool provided by python. Just use the following command for the Installation process:

pip install cmake

Setting up Environment Variable

Step 1: Open https://cmake.org/ and click on Downloads



Step 2: Download the Zip file of CMake.

Step 3: Extract the file and copy the bin file path.

Step 4: Go to Control Panel -> System and Security -> System
Under Advanced System Setting option click on Environment Variables as shown below:

Advanced System SettingsSetting up Environment variable

Step 6: Now, we have to alter the “Path” variable under System variables so that it also contains the path to the CMake environment. Select the “Path” variable and click on the Edit button as shown below:

Step 7: We will see a list of different paths, click on the New button, and then add the path where CMake was installed and then click OK.


Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.