Linux owners configure makefiles so as to have easy commands to perform operations such as make dependencies to pip install required packages. Here are the dry simple steps to run makefiles in Python projects on Windows.
- Download git for windows. You should get git bash, git gui etc
- Download the mingw GUI setup. Install it wherever you want. After running the setup you should get a screen like that:
3. On continuing you should get under all packages. Search for make, class bin. Right click and select mark for installation
4. Under installation, select apply changes
5. Confirm by clicking on apply
6. My git for windows’ migw is installed at C:\Program Files\Git\mingw32 and my mingw get is installed at C:\MinGW. We need to merge the contents on the mingw32 folder with the MinGW. Ctrl+a to select all folder in MinGW then right click and copy. Then go to mingw32 folder and click paste. When asking is merge, say yes. If same files skip
-
Verify if there is
venv/in project gitignore. If not add it and reapply gitignore by using the following command (see accepted answer) -
create a new virtual environent.
python -m venv venv
- activate the env
cd venv
cd scripts
. activate
note the space between . and activate
- cd back
cd ../..
now try out any command listed here for example make dependencies
Forgot to say under bin rename mingw-get.exe to make.exe
Anything mail me
Written by
Abdur-Rahmaan Janhangeer
Chef
Python author of 7+ years having worked for Python companies around the world
Suggested Posts
Python Virtual Environments on Windows: A Complete Guide
If you’re starting multiple Python projects, you will quickly run into a problem: one project needs ...
Python EFL: Building Custom Elementary Widgets (2026)
Want to create unique UI components tailored to your app’s needs? This Python EFL tutorial teaches y...
Python EFL: Scalable GUIs with Generic List (Genlist) (2026)
Handling thousands of UI elements without slowing down your app? This Python EFL tutorial introduces...