Building Blender on OSX [resolved]

Hi

I am following these instructions:

https://wiki.blender.org/wiki/Building_Blender/Mac

but I get an error:

(base) NX-41545:blender mfroehli$ make update
make: /python/bin/python3.10: No such file or directory
make: *** [update] Error 1

I do hav python3.10 installed, but its under a different path:

/opt/homebrew/bin/python3.10

here is the full output:

(base) NX-41545:blender mfroehli$ xcode-select --install
xcode-select: note: install requested for command line developer tools
(base) NX-41545:blender mfroehli$ brew install cmake svn
Running `brew update --auto-update`...
==> Fetching subversion
==> Downloading https://ghcr.io/v2/homebrew/core/subversion/blobs/sha256:ad02a2f
######################################################################### 100.0%
==> Upgrading cmake
  3.27.8 -> 3.28.1 
==> Pouring cmake--3.28.1.arm64_ventura.bottle.tar.gz
(base) NX-41545:blender mfroehli$ cd /Users/mfroehli/blender-git 
(base) NX-41545:blender-git mfroehli$ git clone https://projects.blender.org/blender/blender.git
Klone nach 'blender'...
remote: Enumerating objects: 221068, done.
remote: Counting objects: 100% (221068/221068), done.
remote: Compressing objects: 100% (21768/21768), done.
remote: Total 1737200 (delta 216072), reused 199338 (delta 199300), pack-reused 1516132
Empfange Objekte: 100% (1737200/1737200), 669.59 MiB | 2.34 MiB/s, fertig.
Löse Unterschiede auf: 100% (1518535/1518535), fertig.
Aktualisiere Dateien: 100% (13915/13915), fertig.
(base) NX-41545:blender-git mfroehli$ cd blender
(base) NX-41545:blender mfroehli$ make update
make: /python/bin/python3.10: No such file or directory
make: *** [update] Error 1

any ideas what I do wrong?

Classic macos python shenanigans. I believe there’s a way to either point path to the right install location or install python in /bin without brew. Iirc there’s quite a bit on stackoverflow about it. Sorry I can’t help more atm.

I just resolved this issue on my Mac. You just have to set the “PYTHON” environment variable to your Python binary path. It will resolve the issue.

Thanks. This solved the issue.

For reference:

I had to add the following line in the file “/Users//.bash_profile”:

export PYTHON="/opt/homebrew/bin/python3.10"

This obviously only works if one has also installed python 3.10 via brew.

1 Like

Thanks, this resolved my issue too.