If you have installed Python on your macOS using brew and trying to locate its installed location you can make use of the following command,
mac % brew list python@3.9
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/2to3
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/2to3-3.9
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/idle3
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/idle3.9
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/pip3
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/pip3.9
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/pydoc3
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/pydoc3.9
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/python3
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/python3-config
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/python3.9
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/python3.9-config
/opt/homebrew/Cellar/python@3.9/3.9.6/bin/wheel3
/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/ (3026 files)
/opt/homebrew/Cellar/python@3.9/3.9.6/IDLE 3.app/Contents/ (8 files)
/opt/homebrew/Cellar/python@3.9/3.9.6/lib/pkgconfig/ (4 files)
/opt/homebrew/Cellar/python@3.9/3.9.6/libexec/bin/ (6 files)
/opt/homebrew/Cellar/python@3.9/3.9.6/libexec/wheel-0.36.2-py2.py3-none-any.whl
/opt/homebrew/Cellar/python@3.9/3.9.6/Python Launcher 3.app/Contents/ (16 files)
/opt/homebrew/Cellar/python@3.9/3.9.6/share/man/ (2 files)
Also when you install python you will get info about where Python got installed.
Sample logs of installing Python 3.9Python has been installed as /opt/homebrew/bin/python3
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/opt/homebrew/opt/python@3.9/libexec/bin
You can install Python packages with
pip3 install
They will install into the site-package directory
/opt/homebrew/lib/python3.9/site-packages
More Posts related to Python,
- Read JSON File in Python Program
- Convert Float to String in Python
- Python - Convert float to String
- Check if String Contains a Substring - Python
- Install and Run Jupyter Notebook on Mac (macOS)
- Sorting an array using Bubble Sort in Python Programming
- Comments in Python Programming
- 3 Python program to add two numbers
- Read a file line by line in Python Program
- How to uninstall pip Python packages
- Change label (text) color in tkinter
- 7 Python Arithmetic Operators with Examples [Tutorial]
- pip get list of all outdated Python packages
- Where does brew install python in macOS
- How to Convert String to DateTime in Python
- Python: Fix command not found pip or pip3 on zsh shell
- How to add borders to tkinter label text
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python]
- TypeError: must be str, not int
- Python Program To Calculate Simple Interest (SimpleInterest.py)
- Check version of pip package installer for Python
- Change the background of Tkinter label or text
- Set width and height for the label in tkinter
- How to write JSON file in Python Program
- Python raise error with message example
More Posts:
- How to add Back Button on Toolbar in Android [Tutorial] - Android
- Get Device Screen Width and Height using javaScript - JavaScript
- 12 August - International Youth Day celebrated worldwide - News
- Instant Run requires Tools | Android | Enable ADB integration to be enabled - Android-Studio
- ADT quit unexpectedly error on Mac OSX Android Eclipse SDK - Android
- How to kill tomcat server process using Mac Terminal Command - Tomcat
- How to set background color for android layout pragmatically using java and through xml - Android
- Cannot start Android Studio. No JDK found - Android-Studio