Python 'not compatible' Blender build error for Windows 11 [Solved]

Hi, I’m trying to build Blender using the Building Blender on Windows Guide. I’m not very experienced so I followed the steps exactly through command line. But when I run make update I keep getting this error (see below). There are also three LNK1107 fatal errors in my Build.txt file when I run make. I tried to upload the file here but it seems I don’t have the permission yet. I’ve started from scratch multiple times and I’m just at a loss here :melting_face:

E:\blender-git\blender>make update
No explicit msvc version requested, autodetecting version.
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.9.1
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Compiler Detection successful, detected VS2022
This version of E:\blender-git\blender\lib\windows_x64\python\311\bin\python.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

sounds like gif lfs left pointer files rather than the actual binaries you need, can you check the file size of that python binary?

The python.exe file is 1KB.

yeah thats not right, in your lib/windows_x64 folder, try running git lfs pull followed by git lfs checkout main and see if that corrects the issue.

1 Like

I think that did it! I’ll play around in the app and keep an eye out for anything weird but thank you so much!

I have the exact same error telling me that blender\lib\windows_x64\python\311\bin\python.exe cannot start due or run due to an incompatibility with 64-bit versions of Windows. I have been following the official guide: Windows - Blender Developer Documentation

I tried running git lfs pull, then git lfs checkout main, but I’m still getting the same error.

What might be the source of the problem?

E:\blender-git\blender>git lfs pull

E:\blender-git\blender>git lfs checkout main

E:\blender-git\blender>make update
No explicit msvc version requested, autodetecting version.
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.12.0
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Compiler Detection successful, detected VS2022

image

You ignored an important bit of the guidance i gave

[…] in your lib/windows_x64 folder […]

you ran it in your blender folder.

E:\>cd blender-git\blender\lib\windows_x64

E:\blender-git\blender\lib\windows_x64>git lfs pull
Not in a Git repository.

I’m getting an error saying that the folder is not in a git repo. I’m somewhat new to using git, how do I resolve this issue?

It’s hard to say what went wrong here, I’d probably start from scratch and keep explicit notes/logs about all commands you typed and the output it gave.

As is best guess I have is you may have perhaps accidentally ran git init after cloning?

I think that I might have. How would that affect the git lfs pull?

it resets a bunch of stuff related to the submodules which is… bad…

easiest way to recover is to grab a fresh clone and not do the bad thing

1 Like

Could you please a look at this?
I deleted everything in the blender-git folder and cloned the blender git repo like you told me to, but I’m still facing errors: