Important
If you are using Python from a python.org64-bit/32-bit Python installer for Mac OS X 10.6 and later,you should only use IDLE or tkinter with an updatedthird-party Tcl/Tk 8.5, likeActiveTcl 8.5installed.
If you are using OS X 10.9 Mavericks and a Python from a python.org64-bit/32-bit installer,application windows may not update properly due toa Tk problem.Installthe latest ActiveTcl 8.5.15.0 if possible.(Also, a critical OS X 10.9 problemthat could cause Python to crash when used interactively has been fixed asof the 3.4.0, 3.3.3, and 2.7.6 installers.) Download netflix to apple mac.
If you are using Mac OS X 10.6, do not use IDLE or Tkinterfrom the Apple-supplied Python 2.6.1 in Mac OS X 10.6. If possible,install and use a newer version of Python and of Tcl/Tk.
The Python for Mac OS X installers downloaded from this website dynamically link at runtime to Tcl/Tk Mac OS X frameworks. The Tcl/Tk major version is determined when the installer is created and cannot be overridden. The Python 64-bit/32-bit Mac OS X installers for Python 3.4.x, 3.3.x, 3.2.x, and 2.7.x dynamically link to Tcl/Tk 8.5 frameworks. Jan 04, 2018. Mar 11, 2020. The source releases include make files for Windows, Unix and Xcode project files for Mac OS X. Once you've retrieved the sources, click below for instructions on how to configure, compile, and install Tcl/Tk. How to Compile Tcl Source Releases Unix (including Mac OS X) You'll want both Tcl and Tk sources; choose the and gzipped tar format. Download Tcl/Tk 8.6.10 Source Releases. Download ActiveTcl 8.6.9 Binaries (lagging the core) Highlights of Tcl 8.6. Object Oriented Programming: The commands of the TclOO package are now part of Tcl itself. This gives Tcl a built-in object system that is fully dynamic, class-based, and includes advanced features such as meta-classes, filters. PAGE is a drag-and-drop GUI generator for Python and Tkinter which generates Python modules which display a relatively simple GUI constructed from Tk and ttk widget sets using the Place Geometry Manager. PAGE is a cross platform tool runing on any OS which has Tcl/Tk installed. PAGE output requires only Python and Tkinter and runs on Linux, Unix, Windows, OS X, and even Rasperian.
Python's integrated development environment,IDLE, and thetkinter GUI toolkitit uses, depend on the Tk GUI toolkit which isnot part of Python itself. For best results, it is important that theproper release of Tcl/Tk is installed on your machine.For recent Python installers for Mac OS X downloadable from this website,here is a summary of current recommendations followed by more detailedinformation.
PythonRelease | InstallerVariant | Mac OS XRelease | RecommendedTcl/Tk | AlternateTcl/Tk | NotRecommended |
---|---|---|---|---|---|
3.4.1,2.7.8 | 64-/32-bit | 10.9 | ActiveTcl8.5.15.0 | Apple8.5.9 | |
10.8 | ActiveTcl8.5.15.0 | Apple8.5.9 | |||
10.7 | ActiveTcl8.5.15.0 | Apple8.5.9 | |||
10.6 | ActiveTcl8.5.15.0 | Apple8.5.7 | |||
32-bit-only | 10.5 | ActiveTcl8.4.20 | Apple8.4.7 |
There are currently three major variants of Tk in common use on Mac OS X:
ActiveState provides binary distributions of Tcl/Tk which are upward compatiblewith and generally more up-to-date than those provided by Apple in Mac OS Xreleases. This version of Tcl/Tk includes fixes for some critical problemsthat you may encounter using tkinter or IDLE (see Apple 8.5.9 below).Note that, while the ActiveState web site refers to 8.5.15.0,the installer dmg link has been updated to download ActiveTcl 8.5.15.1.The 8.5.15.1 update contains the fix for the OS X 10.9 Mavericks windowupdate problem.You can download an installer for this release fromthe ActiveState web site.Note that ActiveState Community Edition binaries are not open source andare covered by an ActiveState license. You should read the licensebefore downloading to verify that your usage complies with its terms of use.This is an Aqua Cocoa Tk.
This release is included in Mac OS X 10.9, 10.8, and 10.7. As of this writing,there are at least two known issues with Tk 8.5.9 thatare present in Apple 8.5.9 Tk but fixed in more recent upstream 8.5 releases.The more serious problem is an immediate crash in Tkwhen entering a composition character, like Option-u on a US keyboard.(This problem is documented asTk bug 2907388.)There is also the more general problem of input manager support for compositecharacters(Tk bug 3205153)which has also been fixed in more recent Tcl/Tk 8.5 releases.You can avoid these problems by using a current python.org installerthat links with ActiveTcl 8.5.15.0.This is an Aqua Cocoa Tk.
This release is included in Mac OS X 10.6. IDLE is known to hang or crashwhen used with the Apple 8.5.7 included in all versions of Mac OS X 10.6.x.Because of this,we strongly recommend that you do not attempt to use Tkinter or IDLE withthe Apple-supplied Python 2.6.1 in 10.6. Instead, install a newer version ofPython that supports a newer version of Tk.This is an Aqua Cocoa Tk.
ActiveState provides binary distributions of Tcl/Tk which are upward compatiblewith and generally more up-to-date than those provided by Apple in Mac OS Xreleases. You can download an installer for this release fromthe ActiveState web site.Note that ActiveState Community Edition binaries are not open source andare covered by an ActiveState license. You should read the licensebefore downloading to verify that your usage complies with its terms of use.This is an Aqua Carbon Tk.
This release is included in Mac OS X 10.9, 10.8, 10.7, and 10.6.This is an Aqua Carbon Tk.
This release is included in Mac OS X 10.5 and 10.4. This is an AquaCarbon Tk.
Note
While Tcl and Tk areseparate frameworks and libraries, they are closely related and arenormally installed or updated simultaneously. You should notattempt to mix-and-match Tcl and Tk versions. References toa specific version of Tk assume the corresponding version ofTcl is installed as well.
The Python for Mac OS X installers downloaded from this website dynamicallylink at runtime to Tcl/Tk Mac OS X frameworks. The Tcl/Tk major version isdetermined when the installer is created and cannot be overridden.The Python 64-bit/32-bit Mac OS X installers for Python 3.4.x, 3.3.x, 3.2.x,and 2.7.x dynamically link to Tcl/Tk 8.5 frameworks.32-bit-only Python installers for Mac OS X dynamically link to Tcl/Tk 8.4frameworks.
In either case, the dynamically linking occurs when tkinter (Python 3)or Tkinter (Python 2) is first imported (specifically, the internal_tkinter C extension module). By default, the Mac OS X dynamic linkerlooks first in /Library/Frameworks for Tcl and Tk frameworks withthe proper major version. This is the standard location for third-partyor built from source frameworks, including the ActiveTcl releases.If frameworks of the proper major version are not found there,the dynamic linker looks for the same version in/System/Library/Frameworks, the location for Apple-suppliedframeworks shipped with Mac OS X. (Note, you should normally not modifyor delete files in /System/Library.)
As is common on Mac OS X, the installed Pythons and the Tcl and Tkframeworks are built to run on multiple CPU architectures (universalbinaries) and across multiple Mac OS X levels (minimum deploymenttarget). For Python to be able to dynamically link with a particularTcl and Tk version, the available architectures in the Tcl/Tk frameworksmust include the architecture that Python is running in and theirminimum deployment target should be no greater than that of Python.The 64-bit/32-bit Mac OS X installers for Python 3.4.x, 3.3.x, 3.2.x,and 2.7.x are built with Intel-64 (x86_64) and Intel-32 (i386)architectures and a minimum deployment target of Mac OS X 10.6. TheApple 8.5.9 and ActiveTcl 8.5.15.0 releases discussed below are compatiblewith these installers. The 32-bit-only Python installers for Mac OS Xfrom this web site are built with Intel-32 (i386) and PowerPC-32 (ppc)architectures and are compatible with all current releases of Apple 8.4.x andActiveTcl 8.4.x. Starting with Python 3.3.0, the minimum deployment targetfor 32-bit-only installers is Mac OS X 10.5; for earlier releases, it wasMac OS X 10.3.9.
R 3.5.0-3.6.3 El Capitan binaries and higer were using more recent Clang compiler and GNU Fortran 6.1 to provide OpenMP parallelization support and C++17 standard features. If you want to compile R packages from sources, please download GNU Fortran binary from the official GNU Fortran Binaries page - in particular OS X 10.11 gfortran 6.1. Alternatively, we are providing a copy here as well as Clang binaries for OS X 10.11 and higher - see below for the download links.
clang-8.0.0.pkg (OS X 10.11+, signed, 64-bit) MD5-hash: 664582b0722cb59802cb762b2ad7548b (ca. 482Mb) | Clang 8.0.0 for OS X 10.11 and higher, release build for x86_64, signed package, installs into /usr/local/clang8. To be used with El Capitan builds of R 3.7.0 and higher. It is an installer version of the official LLVM released binaries only modified to use the path above. |
clang-7.0.0.pkg (OS X 10.11+, signed, 64-bit) MD5-hash: cef3fd2a5c165d00f9941f64ea4024f7 (ca. 463Mb) | Clang 7.0.0 for OS X 10.11 and higher, release build for x86_64, signed package, installs into /usr/local/clang7. To be used with El Capitan builds of R 3.6.x. It is an installer version of the official LLVM released binaries only modified to use the path above. |
clang-6.0.0.pkg (OS X 10.11+, signed, 64-bit) MD5-hash: c29700c4e7b2914073ef7e741eb105bc (ca. 418Mb) | Clang 6.0.0 for OS X 10.11 and higher, static build for x86_64, signed package, installs into /usr/local/clang6. To be used with El Capitan builds of R 3.5.x. |
gfortran-6.1.pkg (OS X 10.11+, signed, 64-bit) MD5-hash: 201026216e8b373d9cd2efc0cc474bb8 (ca. 73Mb) | GNU Fortran 6.1 for OS X 10.11 and higher - a copy from GFortranBinaries pages for x86_64, signed package, installs into /usr/local/gfortran (identical content, re-packaged to a flat Installer package and signed). To be used with El Capitan builds of R. |
The following binaries are obsolete and only provided for historical reasons | |
gfortran-4.2.3.pkg (OS X 10.5+, signed, 64-bit driver) MD5-hash: 8783f803038abe6487a362ad5b8995ea (ca. 27MB) gfortran-4.2.3.dmg (OS X 10.4, 32-bit driver) MD5-hash: 9551fc46f55537dd1db581154daf27ef (ca. 27MB) | Universal GNU Fortran 4.2.3 for Mac OS X 10.4 and higher. It is necessary in order to build R packages from sources that contain Fortran code. Unlike many other builds, this is a fully universal build of GNU Fortran that uses Apple's driver and supports all target architectures (i386, ppc, x86_64 and ppc64). As such it fully supports compilation into fat files like gfortran -arch i386 -arch ppc -arch x86_64 -arch ppc64 t.f -o ton both Intel Macs and PowerPC Macs (32- and 64-bit). Dependent libraries are fat as well, avoiding problems known from other Fortran builds (such as those from HPC). It installs in /usr/local and comes with an uninstall-script. |
tcltk-8.5.5-x11.pkg (OS X 10.5+, signed) MD5-hash: e7c406d91762ffdc4539b23c5b5a3ab4 (ca. 9MB) tcltk-8.5.5-x11.dmg (OS X 10.4) MD5-hash: c32dda1b9f2c2776a02cec4e03befc76 (ca. 9MB) | Universal build of Tcl/Tk 8.5.5 for X11 (32-bit and 64-bit). This library is necessary in order to use the tcltk R package (for R 2.8.0 - 2.15.3 only!). It installs in /usr/local. Requires Mac OS X 10.4 (Tiger) or higher for 32-bit R and Mac OS X 10.5 (Leopard) or higher for 64-bit R. NOTE: R 3.0.0 and higher comes bundled with Tck/Tk 8.6.0 so you do not need this package |
For other (optional) 3rd party libraries for development see http://mac.R-project.org/libs/. The devpack has been superseded by those libraries. For R you may want to download and install libpng, libjpeg, readline, freetype, fontconfig, pixman and cairo.
Source code for all 3rd party libraries can be found at http://mac.R-project.org/src/
The dependency libraries used by the CRAN macOS build system are now managed by build recipes. Package authors wishing to add static dependendies can create a pull request to add a dependency.
old | Previous versions of tools as supplied with legacy R versions. |
You may also want to read the R FAQ and R for Mac OS X FAQ. For discussion of Mac-related topics and reporting Mac-specific bugs, please use the R-SIG-Mac mailing list.
Information, tools and most recent daily builds of the R GUI, R-patched and R-devel can be found at http://mac.R-project.org/. Please visit that page especially during beta stages to help us test the Mac OS X binaries before final release! The page also contains links to experimental builds as such 64-bit R for OS X.
Link to corresponding sources: http://mac.R-project.org/src/
Last modified: 2020/04/24, by Simon Urbanek