macos 10.15.7 How to remove python 2.6
I am attempting to install PlatformIO on a iMac 2019 macos 10.15.7 but I get the following error: OSError: [Errno 86] Bad CPU type in executable: '/Library/Frameworks/Python.framework/Versions/2.6/bin/python'
I get the same error if I enter python2.6 in to a terminal window.
I am sure that python 2.6 is 32 bit and Catalina is 64 bit.
From a terminal echo $PATH gives the following :
/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands
I am unable to find any instructions for removing python 2.6, do you know of any? Could I just change the PATH statement if so how? Can I just delete the /Library/Frameworks/Python.framework/Versions/2.6 directory ?
iMac 27″, 10.13