emscripten-core/emsdk

Reinstall Error: ".../emsdk/python/3.9.2_64bit/bin/python3: No such file or directory"

djryanash opened this issue · 1 comments

My C++ project has been unable to run:

#include <emscripten.h>

Possibly due to me putting /emsdk/ in an unusual place:

/Users/<username>/developer/emsdk/

So I moved emscripten to:

/usr/local/emsdk/

It still didn't work, so I uninstalled emscipten by deleting the directory (as suggested on this very GitHub repo).

Then I one through the install steps again but it won't progress beyond this point:

>> cd usr/local/emsdk 
…/emsdk🔒 on  main via 🐍 v3.12.5 
>> ./emsdk install latest                
./emsdk: line 39: /Users/<username>/developer/emsdk/python/3.9.2_64bit/bin/python3: No such file or directory
./emsdk: line 39: exec: /Users/<username>/developer/emsdk/python/3.9.2_64bit/bin/python3: cannot execute: No such file or directory
…/emsdk🔒 on  main via 🐍 v3.12.5 

Some context:

>> which python3
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3

Running zsh on MacOS 14.4.1

Is EMSDK_PYTHON set in your environment perhaps? Can you trying unsetting it?