Error "mach-o, But Wrong Architecture" After Installing Anaconda On Mac
Solution 1:
Below steps resolved this problem for me.
- Quit the terminal.
- Go to Finder => Apps
- Right Click on Terminal
- Get Info
- Check the checkbox Open using Rosetta
Now, open the terminal and try again.
PS: Rosetta allows Mac with M1 architecture to use apps built for Mac with Intel chip. Most of the times the reason behind most of the architecture problems is this chip compatibility reason only. So, 'Open using Rosetta' for terminal allows us to use Rosetta by default for such applications.
Solution 2:
you are mixing 32bit and 64bit versions of python. probably you installed 64bit python version on a 32bit computer. go on and uninstall python and reinstall it with the right configuration.
Solution 3:
This issue is most probably due to messed up python installation. You can try uninstalling python from your os (Take this answer for help How to uninstall Python 2.7 on a Mac OS X 10.6.4?)
And reinstall python. This worked for me.
Solution 4:
I had a similar problem trying to install dask. I solved it following these steps:
1/ Check which version of python are installed (I have : mac os python 2.x and 3.x, anaconda 3.8, brew 3.9):
python -m pipenv.help
Python installations found:
3.9.6
:/opt/homebrew/bin/python3
3.9.6
:/opt/homebrew/bin/python3.9
3.8.8
:/opt/anaconda3/bin/python3
3.8.8
:/opt/anaconda3/bin/python3.8
3.8.2
:/usr/bin/python3
2.7.16
:/usr/bin/python2
2.7.16
:/usr/bin/python2.7
2/ Use pipenv to create a 3.8 virtual environment:
pipenv install --python '/opt/anaconda3/bin/python3'
pipenv install 'dask[complete]'
Note: by default, pipenv was using the 3.9 brew version of python to create the virtual environment - which caused the problem.
3/ Activate the virtual environment and use it:
pipenv shell
Post a Comment for "Error "mach-o, But Wrong Architecture" After Installing Anaconda On Mac"