I am experiencing difficulty with installing Python correctly on my Mac (Fresh Install, I wiped my PC clean). I installed firstly
- Home Brew
- Xcode through App Store
- Command line tools using command:
"xcode-select --install"
On typing the following command:
which python3
Output is as follows:
gaurangsmacbookpro@Gaurangs-New-MacBook-Pro ~ % which python
/usr/bin/python
gaurangsmacbookpro@Gaurangs-New-MacBook-Pro ~ % which python3
/usr/bin/python3
upon running the following command which I was following off a blog from this site: https://www.pyimagesearch.com/2016/12/05/macos-install-opencv-3-and-python-3-5/
brew install eigen tbb
Home brew installed python 3.9 dependencies so no when I type the following commands:
brew list python3
I get the following output:
gaurangsmacbookpro@Gaurangs-New-MacBook-Pro ~ % brew list python3
/usr/local/Cellar/python@3.9/3.9.1_8/bin/2to3
/usr/local/Cellar/python@3.9/3.9.1_8/bin/2to3-3.9
/usr/local/Cellar/python@3.9/3.9.1_8/bin/easy_install-3.9
/usr/local/Cellar/python@3.9/3.9.1_8/bin/idle3
/usr/local/Cellar/python@3.9/3.9.1_8/bin/idle3.9
/usr/local/Cellar/python@3.9/3.9.1_8/bin/pip3
/usr/local/Cellar/python@3.9/3.9.1_8/bin/pip3.9
/usr/local/Cellar/python@3.9/3.9.1_8/bin/pydoc3
/usr/local/Cellar/python@3.9/3.9.1_8/bin/pydoc3.9
/usr/local/Cellar/python@3.9/3.9.1_8/bin/python3
/usr/local/Cellar/python@3.9/3.9.1_8/bin/python3-config
/usr/local/Cellar/python@3.9/3.9.1_8/bin/python3.9
/usr/local/Cellar/python@3.9/3.9.1_8/bin/python3.9-config
/usr/local/Cellar/python@3.9/3.9.1_8/bin/wheel3
/usr/local/Cellar/python@3.9/3.9.1_8/Frameworks/Python.framework/ (3019 files)
/usr/local/Cellar/python@3.9/3.9.1_8/IDLE 3.app/Contents/ (8 files)
/usr/local/Cellar/python@3.9/3.9.1_8/lib/pkgconfig/ (4 files)
/usr/local/Cellar/python@3.9/3.9.1_8/libexec/bin/ (7 files)
/usr/local/Cellar/python@3.9/3.9.1_8/libexec/pip/ (480 files)
/usr/local/Cellar/python@3.9/3.9.1_8/libexec/setuptools/ (334 files)
/usr/local/Cellar/python@3.9/3.9.1_8/libexec/wheel/ (44 files)
/usr/local/Cellar/python@3.9/3.9.1_8/Python Launcher 3.app/Contents/ (16 files)
/usr/local/Cellar/python@3.9/3.9.1_8/share/man/ (2 files)
The contents of my ~./bash_profile file are as follows:
# Add Homebrew's executable directory to the front of the PATH
export PATH=/usr/local/bin:$PATH
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/opt/python@3.8/bin:$PATH"
What am I doing wrong? I just want a fresh clean install of Python 3.8 not 3.9 as there is no support for TF Lite on 3.9 yet. Can someone help me fix this mess? I will be very grateful!