After upgrading to MacOS Monterey I stated getting Theano related errors. This often happens after a MacOS update.
I managed to get this working with these steps:
- Install Xcode with
xcode-select --installrun in the terminal, then follow the install instructions. That alone did not solve the problem.
- But my problem was fixed after running
export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/includewhich was taken from here.
After that my problems were solved. I made sure to quit and restart Terminal, I’m not sure how important that step was.
- This was on an M1 MacBook Air running regular (not Apple Silicon) Anaconda Python install.
- I did not have any issues at all after upgrading to MacOS Monterey on my 2019 iMac (non Apple Silicon).