We installed python3 in my new mac environment but we unable to compile in Arduino IDE for NodeMCU.
We updated the python env path in ~/.bash_profile
export PATH=/usr/local/bin:$PATH
https://github.com/esp8266/Arduino/issues/6931
I see Mac users don't understand the basics of SEARCH.
That's a MacOS + Brew issue, but easily fixed w/o hacks using the Apple-supported python3 toolset...
I just installed and ran the Arduino IDE on a fresh Catalina install and I get the helpful error:

I also get a nice dialog from Apple letting me click one button to install Python:

Clicking thru the license/etc. and waiting a few mins to install, when I rerun the build it works fine (don't need to restart Arduino):

@sathiyaraj45 Can you remove that .bashrc change and take a look at #7348? You'll need to re-run the get.py to download a new OSX bundle with a portable python3 interpreter included (so not path changes, no need to use brew or install Xcode.
Thanks to @Tech-TX and @earlephilhower.