Catalina Python3

Once you have installed the 'command line tools' for Catalina using the following terminal command: xcode-select -install `python3` will run Python 3.7.3:% which python3 /usr/bin/python3% python3 Python 3.7.3 (default, Apr 7 2020, 14:06:47) Clang 11.0.3 (clang-1103.0.32.59) on darwin Type 'help', 'copyright', 'credits' or 'license' for more information. `pip` isn't there as a. Installing or updating Python on your computer is the first step to becoming a Python programmer. There are a multitude of installation methods: you can download official Python distributions from Python.org, install from a package manager, and even install specialized distributions for scientific computing, Internet of Things, and embedded systems. Python 3 is developing steadily, and releasing new updates regularly. That makes it important for me to regularly get those updates. Recently, I tried to run a project on macOS that depended on Python 3.5.9, a version that I did not have installed on my system.

This page describes how Python is handled in Homebrew for users. See Python for Formula Authors for advice on writing formulae to install packages written in Python.

  1. Installing Python on Mac OS X Catalina Posted by bernard 11 November 2020 11 November 2020 (This is a reminder to myself, and maybe a help for someone else who might be in the same situation as me.
  2. Frost@ccsmac % type python. Python is /usr/bin/python. Take python as an example. It tells you /usr/bin/python is called when you use the command python. However, the path is not necessarily your interpreter's real path: it may be an alias or a trampoline. To see the actual path of the interpreter, you need other commands.

Homebrew should work with any CPython and defaults to the macOS system Python.

Homebrew provides formulae to brew Python 3.x.

Homebrew provided a python@2 formula until the end of 2019, at which point it was removed due to the Python 2 deprecation.

Important: If you choose to use a Python which isn’t either of these two (system Python or brewed Python), the Homebrew team cannot support any breakage that may occur.

Python 3.x

Homebrew provides a formula for Python 3.x (python@3.x).

Important: Python may be upgraded to a newer version at any time. Consider using a versionmanager such as pyenv if you require stability of minor or patch versions for virtual environments.

The executables are organised as follows:

  • python3 points to Homebrew’s Python 3.x (if installed)
  • pip3 points to Homebrew’s Python 3.x’s pip (if installed)

Unversioned symlinks for python, python-config, pip etc. are installed here:

Setuptools, Pip, etc.

The Python formulae install pip (as pip3) and Setuptools.

Setuptools can be updated via pip3, without having to re-brew Python:

Similarly, pip3 can be used to upgrade itself via:

site-packages and the PYTHONPATH

The site-packages is a directory that contains Python modules (especially bindings installed by other formulae). Homebrew creates it here:

So, for Python 3.y.z, you’ll find it at /usr/local/lib/python3.y/site-packages.

Python 3.y also searches for modules in:

  • /Library/Python/3.y/site-packages
  • ~/Library/Python/3.y/lib/python/site-packages

Homebrew’s site-packages directory is first created if (1) any Homebrew formula with Python bindings are installed, or (2) upon brew install python.

Why here?

The reasoning for this location is to preserve your modules between (minor) upgrades or re-installations of Python. Additionally, Homebrew has a strict policy never to write stuff outside of the brew --prefix, so we don’t spam your system.

Homebrew-provided Python bindings

Some formulae provide Python bindings.

Warning! Python may crash (see Common Issues) if you import <module> from a brewed Python if you ran brew install <formula_with_python_bindings> against the system Python. If you decide to switch to the brewed Python, then reinstall all formulae with Python bindings (e.g. pyside, wxwidgets, pygtk, pygobject, opencv, vtk and boost-python).

Policy for non-brewed Python bindings

These should be installed via pip install <package>. To discover, you can use pip search or https://pypi.python.org/pypi.

Note: macOS’s system Python does not provide pip. Follow the pip documentation to install it for your system Python if you would like it.

Brewed Python modules

For brewed Python, modules installed with pip3 or python3 setup.py install will be installed to the $(brew --prefix)/lib/pythonX.Y/site-packages directory (explained above). Executable Python scripts will be in $(brew --prefix)/bin.

Catalina Python3 Pip

The system Python may not know which compiler flags to set in order to build bindings for software installed in Homebrew so you may need to run:

Virtualenv

WARNING: When you brew install formulae that provide Python bindings, you should not be in an active virtual environment.

Activate the virtualenv after you’ve brewed, or brew in a fresh terminal window.Homebrew will still install Python modules into Homebrew’s site-packages and not into the virtual environment’s site-package.

Virtualenv has a --system-site-packages switch to allow “global” (i.e. Homebrew’s) site-packages to be accessible from within the virtualenv.

Why is Homebrew’s Python being installed as a dependency?

Formulae that declare an unconditional dependency on the 'python' formula are bottled against Homebrew’s Python 3.x and require it to be installed.

Release Date: Aug. 17, 2020

Python 3.7.9 was a security release of Python 3.7.

There are now newer security releases of Python 3.7 that supersede 3.7.9 and Python 3.9 is now the latest feature release of Python 3. Get the latest releases of 3.7.x and 3.9.x here.Python 3.7.8 was the last bugfix release of Python 3.7 before 3.7 entered the security-fix phase of its life cycle. We plan to provide security fixes until mid 2023, five years after its initial release. Note that there are updated binary installers available for 3.7.9.

Binary installers are normally not provided for security fix releases. However, since 3.7.8 was the last 3.7.x bugfix release and there are security fixes published in 3.7.9 that apply to users of some of the binary installers provided with 3.7.8, we have made an exception for 3.7.9 and are also updating the Windows and macOS binary installers. We do not plan to provide further binary updates for future 3.7.x security releases.

Please see the Full Changelog link for more information about the contents of this release and see What’s New In Python 3.7 for more information about 3.7 features.

  • PEP 537, 3.7 Release Schedule
  • Report bugs at https://bugs.python.org.
  • Help fund Python and its community.
Mac catalina python3 default

Catalina Python 3

  • The binaries for AMD64 will also work on processors that implement the Intel 64 architecture. (Also known as the 'x64' architecture, and formerly known as both 'EM64T' and 'x86-64'.)
  • There are now 'web-based' installers for Windows platforms; the installer will download the needed software components at installation time.
  • There are redistributable zip files containing the Windows builds, making it easy to redistribute Python as part of another software package. Please see the documentation regarding Embedded Distribution for more information.
  • Please read the 'Important Information' displayed during installation for information about SSL/TLS certificate validation and the running the 'Install Certificates.command'.
  • As of 3.7.7, we provide one installer: 64-bit-only that works on macOS 10.9 (Mavericks) and later systems. The deprecated 64-bit/32-bit installer variant for macOS 10.6 (Snow Leopard) is no longer provided.
  • As of 3.7.7, macOS installer packages are now compatible with the full Gatekeeper notarization requirements of macOS 10.15 Catalina including code signing.

Catalina Python 32-bit

VersionOperating SystemDescriptionMD5 SumFile SizeGPG
Gzipped source tarballSource releasebcd9f22cf531efc6f06ca6b9b2919bd423277790SIG
XZ compressed source tarballSource release389d3ed26b4d97c741d9e5423da1f43b17389636SIG
macOS 64-bit installermacOSfor OS X 10.9 and later4b544fc0ac8c3cffdb67dede23ddb79e29305353SIG
Windows help fileWindows1094c8d9438ad1adc263ca57ceb3b9278186795SIG
Windows x86-64 embeddable zip fileWindowsfor AMD64/EM64T/x6460f77740b30030b22699dbd14883a4a37502379SIG
Windows x86-64 executable installerWindowsfor AMD64/EM64T/x647083fed513c3c9a4ea655211df9ade2726940592SIG
Windows x86-64 web-based installerWindowsfor AMD64/EM64T/x64da0b17ae84d6579f8df3eb24927fd8251348904SIG
Windows x86 embeddable zip fileWindows97c6558d479dc53bf448580b66ad7c1e6659999SIG
Windows x86 executable installerWindows1e6d31c98c68c723541f0821b3c15d5225875560SIG
Windows x86 web-based installerWindows22f68f09e533c4940fc006e035f08aa21319904SIG