Open In App

How to Install CMake for Windows in Python?

Improve
Improve
Like Article
Like
Save
Share
Report

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.


Last Updated : 06 Oct, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads