

The Mac is inserting its own Python into what I want. It includes /System/Library/Frameworks/amework/Versions/2.7/lib/python2.7Īnd tensorflow won't work. Meantime, I want to do the introductory tensorflow machine learning course, and it insists on Python 3.8Īlias python='/opt/homebrew/Cellar/ /3.8.8_1/bin/python3'Īnd I deleted all references to Python2.7.īut when I open a new terminal, and run a Python program which does

If you use Homebrew to install Vim, it uses /opt/homebrew/Cellar/, and it warns you if you delete it, Vim won't work. No worries if you're unsure about it but I'd recommend going through it.Ī Mac has more Pythons than a Malaysian jungle.Ī new Mac M1 has version 2.7 in /System/Library/Frameworks/amework/Versions/2.7 This one's applicable and useful in some cases and could possiblty be of some help. sudo rm -rf /Library/Frameworks/amework/Versions/2.7 Remove the Python 2.7 applications. Here's the final solution you can try out in case no other solution was helpful to you. Answers: Remove the third-party Python 2.7 framework.
