error=86, Bad CPU type in executable
I cannot use my python (python 2.7) on my IDE programs. It is giving the below error. My OS is Big Sur.
Error:Cannot run program "/usr/local/bin/python2.7" (in directory "/Users/XXXXXXX/Desktop"): error=86, Bad CPU type in executable
I followed the instructions from this article https://support.apple.com/en-us/HT208050 but it did not solve the problem.
MacBook Pro 13″, macOS 11.0