I just had my first Mac book but that too with M1 processor and since then I am struggling with software compatibility issues.
Considering that I dont have much experience with Mac, I really need some help in resolving this issue.
I want to run azure functions on VS Code locally and for that, I need python, VS Code and azure tools but I kept on getting errors saying that Architecture ARM is not supported for language python.
I tried with python 3.8, 3.9 and 3.10 (3.10 was not accepted by VS Code.)
So, now what I understand is that using Rosetta, we can use the same softwares which we use on intel processor, so I followed below protocol for that.
- installed Rosetta : /usr/sbin/softwareupdate --install-rosetta
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- cd ~/Downloads
- mkdir homebrew
- curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
- sudo mv homebrew /usr/local/homebrew
- export PATH=$HOME/bin:/usr/local/bin:$PATH
- Let’s add an alias and path in the ~/.zshrc file:
-If you come from bash you might have to change your $PATH.
-need this for x86_64 brew
export PATH=$HOME/bin:/usr/local/bin:$PATH alias axbrew='arch -x86_64 /usr/local/homebrew/bin/brew'
LINK I referred for this: https://medium.com/mkdir-awesome/how-to-install-x86-64-homebrew-packages-on-apple-m1-macbook-54ba295230f
- Now you can install apps for Intel processors: axbrew install package-name
so, now I thought I am finally done.
- I installed python -> axbrew install python@3.9
- I downloaded VS Code Universal.
- ran the function, it threw error for "you must have download azure function core tools". Used below commands to download it :
but still I keep getting this error from VS Code. VS code doesnt recognize the azure tools functions I installed.
I tried with VSCode universal, for intel etc, but still the same.
Any leads on why I am facing this issue and how to come out of it.