mac.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
  6. <meta property="og:title" content="5. Using Python on a Mac" />
  7. <meta property="og:type" content="website" />
  8. <meta property="og:url" content="https://docs.python.org/3/using/mac.html" />
  9. <meta property="og:site_name" content="Python documentation" />
  10. <meta property="og:description" content="Author, Bob Savage < bobsavage@mac.com>,. Python on a Mac running macOS is in principle very similar to Python on any other Unix platform, but there are a number of additional features such as the ..." />
  11. <meta property="og:image" content="https://docs.python.org/3/_static/og-image.png" />
  12. <meta property="og:image:alt" content="Python documentation" />
  13. <meta name="description" content="Author, Bob Savage < bobsavage@mac.com>,. Python on a Mac running macOS is in principle very similar to Python on any other Unix platform, but there are a number of additional features such as the ..." />
  14. <meta property="og:image:width" content="200" />
  15. <meta property="og:image:height" content="200" />
  16. <meta name="theme-color" content="#3776ab" />
  17. <title>5. Using Python on a Mac &#8212; Python 3.12.0 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
  19. <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?digest=b37c26da2f7529d09fe70b41c4b2133fe4931a90" />
  20. <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css" />
  21. <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
  22. <script src="../_static/jquery.js"></script>
  23. <script src="../_static/underscore.js"></script>
  24. <script src="../_static/doctools.js"></script>
  25. <script src="../_static/sidebar.js"></script>
  26. <link rel="search" type="application/opensearchdescription+xml"
  27. title="Search within Python 3.12.0 documentation"
  28. href="../_static/opensearch.xml"/>
  29. <link rel="author" title="About these documents" href="../about.html" />
  30. <link rel="index" title="Index" href="../genindex.html" />
  31. <link rel="search" title="Search" href="../search.html" />
  32. <link rel="copyright" title="Copyright" href="../copyright.html" />
  33. <link rel="next" title="6. Editors and IDEs" href="editors.html" />
  34. <link rel="prev" title="4. Using Python on Windows" href="windows.html" />
  35. <link rel="canonical" href="https://docs.python.org/3/using/mac.html" />
  36. <style>
  37. @media only screen {
  38. table.full-width-table {
  39. width: 100%;
  40. }
  41. }
  42. </style>
  43. <link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
  44. <link rel="shortcut icon" type="image/png" href="../_static/py.svg" />
  45. <script type="text/javascript" src="../_static/copybutton.js"></script>
  46. <script type="text/javascript" src="../_static/menu.js"></script>
  47. <script type="text/javascript" src="../_static/themetoggle.js"></script>
  48. </head>
  49. <body>
  50. <div class="mobile-nav">
  51. <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
  52. aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu" />
  53. <nav class="nav-content" role="navigation">
  54. <label for="menuToggler" class="toggler__label">
  55. <span></span>
  56. </label>
  57. <span class="nav-items-wrapper">
  58. <a href="https://www.python.org/" class="nav-logo">
  59. <img src="../_static/py.svg" alt="Logo"/>
  60. </a>
  61. <span class="version_switcher_placeholder"></span>
  62. <form role="search" class="search" action="../search.html" method="get">
  63. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
  64. <path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
  65. </svg>
  66. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  67. <input type="submit" value="Go"/>
  68. </form>
  69. </span>
  70. </nav>
  71. <div class="menu-wrapper">
  72. <nav class="menu" role="navigation" aria-label="main navigation">
  73. <div class="language_switcher_placeholder"></div>
  74. <label class="theme-selector-label">
  75. Theme
  76. <select class="theme-selector" oninput="activateTheme(this.value)">
  77. <option value="auto" selected>Auto</option>
  78. <option value="light">Light</option>
  79. <option value="dark">Dark</option>
  80. </select>
  81. </label>
  82. <div>
  83. <h3><a href="../contents.html">Table of Contents</a></h3>
  84. <ul>
  85. <li><a class="reference internal" href="#">5. Using Python on a Mac</a><ul>
  86. <li><a class="reference internal" href="#getting-and-installing-macpython">5.1. Getting and Installing MacPython</a><ul>
  87. <li><a class="reference internal" href="#how-to-run-a-python-script">5.1.1. How to run a Python script</a></li>
  88. <li><a class="reference internal" href="#running-scripts-with-a-gui">5.1.2. Running scripts with a GUI</a></li>
  89. <li><a class="reference internal" href="#configuration">5.1.3. Configuration</a></li>
  90. </ul>
  91. </li>
  92. <li><a class="reference internal" href="#the-ide">5.2. The IDE</a></li>
  93. <li><a class="reference internal" href="#installing-additional-python-packages">5.3. Installing Additional Python Packages</a></li>
  94. <li><a class="reference internal" href="#gui-programming-on-the-mac">5.4. GUI Programming on the Mac</a></li>
  95. <li><a class="reference internal" href="#distributing-python-applications-on-the-mac">5.5. Distributing Python Applications on the Mac</a></li>
  96. <li><a class="reference internal" href="#other-resources">5.6. Other Resources</a></li>
  97. </ul>
  98. </li>
  99. </ul>
  100. </div>
  101. <div>
  102. <h4>Previous topic</h4>
  103. <p class="topless"><a href="windows.html"
  104. title="previous chapter"><span class="section-number">4. </span>Using Python on Windows</a></p>
  105. </div>
  106. <div>
  107. <h4>Next topic</h4>
  108. <p class="topless"><a href="editors.html"
  109. title="next chapter"><span class="section-number">6. </span>Editors and IDEs</a></p>
  110. </div>
  111. <div role="note" aria-label="source link">
  112. <h3>This Page</h3>
  113. <ul class="this-page-menu">
  114. <li><a href="../bugs.html">Report a Bug</a></li>
  115. <li>
  116. <a href="https://github.com/python/cpython/blob/main/Doc/using/mac.rst"
  117. rel="nofollow">Show Source
  118. </a>
  119. </li>
  120. </ul>
  121. </div>
  122. </nav>
  123. </div>
  124. </div>
  125. <div class="related" role="navigation" aria-label="related navigation">
  126. <h3>Navigation</h3>
  127. <ul>
  128. <li class="right" style="margin-right: 10px">
  129. <a href="../genindex.html" title="General Index"
  130. accesskey="I">index</a></li>
  131. <li class="right" >
  132. <a href="../py-modindex.html" title="Python Module Index"
  133. >modules</a> |</li>
  134. <li class="right" >
  135. <a href="editors.html" title="6. Editors and IDEs"
  136. accesskey="N">next</a> |</li>
  137. <li class="right" >
  138. <a href="windows.html" title="4. Using Python on Windows"
  139. accesskey="P">previous</a> |</li>
  140. <li><img src="../_static/py.svg" alt="python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  141. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  142. <li class="switchers">
  143. <div class="language_switcher_placeholder"></div>
  144. <div class="version_switcher_placeholder"></div>
  145. </li>
  146. <li>
  147. </li>
  148. <li id="cpython-language-and-version">
  149. <a href="../index.html">3.12.0 Documentation</a> &#187;
  150. </li>
  151. <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Python Setup and Usage</a> &#187;</li>
  152. <li class="nav-item nav-item-this"><a href=""><span class="section-number">5. </span>Using Python on a Mac</a></li>
  153. <li class="right">
  154. <div class="inline-search" role="search">
  155. <form class="inline-search" action="../search.html" method="get">
  156. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  157. <input type="submit" value="Go" />
  158. </form>
  159. </div>
  160. |
  161. </li>
  162. <li class="right">
  163. <label class="theme-selector-label">
  164. Theme
  165. <select class="theme-selector" oninput="activateTheme(this.value)">
  166. <option value="auto" selected>Auto</option>
  167. <option value="light">Light</option>
  168. <option value="dark">Dark</option>
  169. </select>
  170. </label> |</li>
  171. </ul>
  172. </div>
  173. <div class="document">
  174. <div class="documentwrapper">
  175. <div class="bodywrapper">
  176. <div class="body" role="main">
  177. <section id="using-python-on-a-mac">
  178. <span id="using-on-mac"></span><h1><span class="section-number">5. </span>Using Python on a Mac<a class="headerlink" href="#using-python-on-a-mac" title="Permalink to this headline">¶</a></h1>
  179. <dl class="field-list simple">
  180. <dt class="field-odd">Author</dt>
  181. <dd class="field-odd"><p>Bob Savage &lt;<a class="reference external" href="mailto:bobsavage&#37;&#52;&#48;mac&#46;com">bobsavage<span>&#64;</span>mac<span>&#46;</span>com</a>&gt;</p>
  182. </dd>
  183. </dl>
  184. <p>Python on a Mac running macOS is in principle very similar to Python on
  185. any other Unix platform, but there are a number of additional features such as
  186. the IDE and the Package Manager that are worth pointing out.</p>
  187. <section id="getting-and-installing-macpython">
  188. <span id="getting-osx"></span><h2><span class="section-number">5.1. </span>Getting and Installing MacPython<a class="headerlink" href="#getting-and-installing-macpython" title="Permalink to this headline">¶</a></h2>
  189. <p>macOS used to come with Python 2.7 pre-installed between versions
  190. 10.8 and <a class="reference external" href="https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes#Python">12.3</a>.
  191. You are invited to install the most recent version of Python 3 from the Python
  192. website (<a class="reference external" href="https://www.python.org">https://www.python.org</a>). A current “universal binary” build of Python,
  193. which runs natively on the Mac’s new Intel and legacy PPC CPU’s, is available
  194. there.</p>
  195. <p>What you get after installing is a number of things:</p>
  196. <ul class="simple">
  197. <li><p>A <code class="file docutils literal notranslate"><span class="pre">Python</span> <span class="pre">3.12</span></code> folder in your <code class="file docutils literal notranslate"><span class="pre">Applications</span></code> folder. In here
  198. you find IDLE, the development environment that is a standard part of official
  199. Python distributions; and PythonLauncher, which handles double-clicking Python
  200. scripts from the Finder.</p></li>
  201. <li><p>A framework <code class="file docutils literal notranslate"><span class="pre">/Library/Frameworks/Python.framework</span></code>, which includes the
  202. Python executable and libraries. The installer adds this location to your shell
  203. path. To uninstall MacPython, you can simply remove these three things. A
  204. symlink to the Python executable is placed in /usr/local/bin/.</p></li>
  205. </ul>
  206. <p>The Apple-provided build of Python is installed in
  207. <code class="file docutils literal notranslate"><span class="pre">/System/Library/Frameworks/Python.framework</span></code> and <code class="file docutils literal notranslate"><span class="pre">/usr/bin/python</span></code>,
  208. respectively. You should never modify or delete these, as they are
  209. Apple-controlled and are used by Apple- or third-party software. Remember that
  210. if you choose to install a newer Python version from python.org, you will have
  211. two different but functional Python installations on your computer, so it will
  212. be important that your paths and usages are consistent with what you want to do.</p>
  213. <p>IDLE includes a help menu that allows you to access Python documentation. If you
  214. are completely new to Python you should start reading the tutorial introduction
  215. in that document.</p>
  216. <p>If you are familiar with Python on other Unix platforms you should read the
  217. section on running Python scripts from the Unix shell.</p>
  218. <section id="how-to-run-a-python-script">
  219. <h3><span class="section-number">5.1.1. </span>How to run a Python script<a class="headerlink" href="#how-to-run-a-python-script" title="Permalink to this headline">¶</a></h3>
  220. <p>Your best way to get started with Python on macOS is through the IDLE
  221. integrated development environment, see section <a class="reference internal" href="#ide"><span class="std std-ref">The IDE</span></a> and use the Help menu
  222. when the IDE is running.</p>
  223. <p>If you want to run Python scripts from the Terminal window command line or from
  224. the Finder you first need an editor to create your script. macOS comes with a
  225. number of standard Unix command line editors, <strong class="program">vim</strong> and
  226. <strong class="program">emacs</strong> among them. If you want a more Mac-like editor,
  227. <strong class="program">BBEdit</strong> or <strong class="program">TextWrangler</strong> from Bare Bones Software (see
  228. <a class="reference external" href="http://www.barebones.com/products/bbedit/index.html">http://www.barebones.com/products/bbedit/index.html</a>) are good choices, as is
  229. <strong class="program">TextMate</strong> (see <a class="reference external" href="https://macromates.com/">https://macromates.com/</a>). Other editors include
  230. <strong class="program">Gvim</strong> (<a class="reference external" href="https://macvim.org/macvim/">https://macvim.org/macvim/</a>) and <strong class="program">Aquamacs</strong>
  231. (<a class="reference external" href="http://aquamacs.org/">http://aquamacs.org/</a>).</p>
  232. <p>To run your script from the Terminal window you must make sure that
  233. <code class="file docutils literal notranslate"><span class="pre">/usr/local/bin</span></code> is in your shell search path.</p>
  234. <p>To run your script from the Finder you have two options:</p>
  235. <ul class="simple">
  236. <li><p>Drag it to <strong class="program">PythonLauncher</strong></p></li>
  237. <li><p>Select <strong class="program">PythonLauncher</strong> as the default application to open your
  238. script (or any .py script) through the finder Info window and double-click it.
  239. <strong class="program">PythonLauncher</strong> has various preferences to control how your script is
  240. launched. Option-dragging allows you to change these for one invocation, or use
  241. its Preferences menu to change things globally.</p></li>
  242. </ul>
  243. </section>
  244. <section id="running-scripts-with-a-gui">
  245. <span id="osx-gui-scripts"></span><h3><span class="section-number">5.1.2. </span>Running scripts with a GUI<a class="headerlink" href="#running-scripts-with-a-gui" title="Permalink to this headline">¶</a></h3>
  246. <p>With older versions of Python, there is one macOS quirk that you need to be
  247. aware of: programs that talk to the Aqua window manager (in other words,
  248. anything that has a GUI) need to be run in a special way. Use <strong class="program">pythonw</strong>
  249. instead of <strong class="program">python</strong> to start such scripts.</p>
  250. <p>With Python 3.9, you can use either <strong class="program">python</strong> or <strong class="program">pythonw</strong>.</p>
  251. </section>
  252. <section id="configuration">
  253. <h3><span class="section-number">5.1.3. </span>Configuration<a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h3>
  254. <p>Python on macOS honors all standard Unix environment variables such as
  255. <span class="target" id="index-0"></span><a class="reference internal" href="cmdline.html#envvar-PYTHONPATH"><code class="xref std std-envvar docutils literal notranslate"><span class="pre">PYTHONPATH</span></code></a>, but setting these variables for programs started from the
  256. Finder is non-standard as the Finder does not read your <code class="file docutils literal notranslate"><span class="pre">.profile</span></code> or
  257. <code class="file docutils literal notranslate"><span class="pre">.cshrc</span></code> at startup. You need to create a file
  258. <code class="file docutils literal notranslate"><span class="pre">~/.MacOSX/environment.plist</span></code>. See Apple’s Technical Document QA1067 for
  259. details.</p>
  260. <p>For more information on installation Python packages in MacPython, see section
  261. <a class="reference internal" href="#mac-package-manager"><span class="std std-ref">Installing Additional Python Packages</span></a>.</p>
  262. </section>
  263. </section>
  264. <section id="the-ide">
  265. <span id="ide"></span><h2><span class="section-number">5.2. </span>The IDE<a class="headerlink" href="#the-ide" title="Permalink to this headline">¶</a></h2>
  266. <p>MacPython ships with the standard IDLE development environment. A good
  267. introduction to using IDLE can be found at
  268. <a class="reference external" href="http://www.hashcollision.org/hkn/python/idle_intro/index.html">http://www.hashcollision.org/hkn/python/idle_intro/index.html</a>.</p>
  269. </section>
  270. <section id="installing-additional-python-packages">
  271. <span id="mac-package-manager"></span><h2><span class="section-number">5.3. </span>Installing Additional Python Packages<a class="headerlink" href="#installing-additional-python-packages" title="Permalink to this headline">¶</a></h2>
  272. <p>This section has moved to the <a class="reference external" href="https://packaging.python.org/en/latest/tutorials/installing-packages/">Python Packaging User Guide</a>.</p>
  273. </section>
  274. <section id="gui-programming-on-the-mac">
  275. <h2><span class="section-number">5.4. </span>GUI Programming on the Mac<a class="headerlink" href="#gui-programming-on-the-mac" title="Permalink to this headline">¶</a></h2>
  276. <p>There are several options for building GUI applications on the Mac with Python.</p>
  277. <p><em>PyObjC</em> is a Python binding to Apple’s Objective-C/Cocoa framework, which is
  278. the foundation of most modern Mac development. Information on PyObjC is
  279. available from <a class="reference external" href="https://pypi.org/project/pyobjc/">https://pypi.org/project/pyobjc/</a>.</p>
  280. <p>The standard Python GUI toolkit is <a class="reference internal" href="../library/tkinter.html#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code class="xref py py-mod docutils literal notranslate"><span class="pre">tkinter</span></code></a>, based on the cross-platform
  281. Tk toolkit (<a class="reference external" href="https://www.tcl.tk">https://www.tcl.tk</a>). An Aqua-native version of Tk is bundled with
  282. macOS by Apple, and the latest version can be downloaded and installed from
  283. <a class="reference external" href="https://www.activestate.com">https://www.activestate.com</a>; it can also be built from source.</p>
  284. <p><em>wxPython</em> is another popular cross-platform GUI toolkit that runs natively on
  285. macOS. Packages and documentation are available from <a class="reference external" href="https://www.wxpython.org">https://www.wxpython.org</a>.</p>
  286. <p><em>PyQt</em> is another popular cross-platform GUI toolkit that runs natively on
  287. macOS. More information can be found at
  288. <a class="reference external" href="https://riverbankcomputing.com/software/pyqt/intro">https://riverbankcomputing.com/software/pyqt/intro</a>.</p>
  289. </section>
  290. <section id="distributing-python-applications-on-the-mac">
  291. <h2><span class="section-number">5.5. </span>Distributing Python Applications on the Mac<a class="headerlink" href="#distributing-python-applications-on-the-mac" title="Permalink to this headline">¶</a></h2>
  292. <p>The standard tool for deploying standalone Python applications on the Mac is
  293. <strong class="program">py2app</strong>. More information on installing and using py2app can be found
  294. at <a class="reference external" href="https://pypi.org/project/py2app/">https://pypi.org/project/py2app/</a>.</p>
  295. </section>
  296. <section id="other-resources">
  297. <h2><span class="section-number">5.6. </span>Other Resources<a class="headerlink" href="#other-resources" title="Permalink to this headline">¶</a></h2>
  298. <p>The MacPython mailing list is an excellent support resource for Python users and
  299. developers on the Mac:</p>
  300. <p><a class="reference external" href="https://www.python.org/community/sigs/current/pythonmac-sig/">https://www.python.org/community/sigs/current/pythonmac-sig/</a></p>
  301. <p>Another useful resource is the MacPython wiki:</p>
  302. <p><a class="reference external" href="https://wiki.python.org/moin/MacPython">https://wiki.python.org/moin/MacPython</a></p>
  303. </section>
  304. </section>
  305. <div class="clearer"></div>
  306. </div>
  307. </div>
  308. </div>
  309. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  310. <div class="sphinxsidebarwrapper">
  311. <div>
  312. <h3><a href="../contents.html">Table of Contents</a></h3>
  313. <ul>
  314. <li><a class="reference internal" href="#">5. Using Python on a Mac</a><ul>
  315. <li><a class="reference internal" href="#getting-and-installing-macpython">5.1. Getting and Installing MacPython</a><ul>
  316. <li><a class="reference internal" href="#how-to-run-a-python-script">5.1.1. How to run a Python script</a></li>
  317. <li><a class="reference internal" href="#running-scripts-with-a-gui">5.1.2. Running scripts with a GUI</a></li>
  318. <li><a class="reference internal" href="#configuration">5.1.3. Configuration</a></li>
  319. </ul>
  320. </li>
  321. <li><a class="reference internal" href="#the-ide">5.2. The IDE</a></li>
  322. <li><a class="reference internal" href="#installing-additional-python-packages">5.3. Installing Additional Python Packages</a></li>
  323. <li><a class="reference internal" href="#gui-programming-on-the-mac">5.4. GUI Programming on the Mac</a></li>
  324. <li><a class="reference internal" href="#distributing-python-applications-on-the-mac">5.5. Distributing Python Applications on the Mac</a></li>
  325. <li><a class="reference internal" href="#other-resources">5.6. Other Resources</a></li>
  326. </ul>
  327. </li>
  328. </ul>
  329. </div>
  330. <div>
  331. <h4>Previous topic</h4>
  332. <p class="topless"><a href="windows.html"
  333. title="previous chapter"><span class="section-number">4. </span>Using Python on Windows</a></p>
  334. </div>
  335. <div>
  336. <h4>Next topic</h4>
  337. <p class="topless"><a href="editors.html"
  338. title="next chapter"><span class="section-number">6. </span>Editors and IDEs</a></p>
  339. </div>
  340. <div role="note" aria-label="source link">
  341. <h3>This Page</h3>
  342. <ul class="this-page-menu">
  343. <li><a href="../bugs.html">Report a Bug</a></li>
  344. <li>
  345. <a href="https://github.com/python/cpython/blob/main/Doc/using/mac.rst"
  346. rel="nofollow">Show Source
  347. </a>
  348. </li>
  349. </ul>
  350. </div>
  351. </div>
  352. </div>
  353. <div class="clearer"></div>
  354. </div>
  355. <div class="related" role="navigation" aria-label="related navigation">
  356. <h3>Navigation</h3>
  357. <ul>
  358. <li class="right" style="margin-right: 10px">
  359. <a href="../genindex.html" title="General Index"
  360. >index</a></li>
  361. <li class="right" >
  362. <a href="../py-modindex.html" title="Python Module Index"
  363. >modules</a> |</li>
  364. <li class="right" >
  365. <a href="editors.html" title="6. Editors and IDEs"
  366. >next</a> |</li>
  367. <li class="right" >
  368. <a href="windows.html" title="4. Using Python on Windows"
  369. >previous</a> |</li>
  370. <li><img src="../_static/py.svg" alt="python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  371. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  372. <li class="switchers">
  373. <div class="language_switcher_placeholder"></div>
  374. <div class="version_switcher_placeholder"></div>
  375. </li>
  376. <li>
  377. </li>
  378. <li id="cpython-language-and-version">
  379. <a href="../index.html">3.12.0 Documentation</a> &#187;
  380. </li>
  381. <li class="nav-item nav-item-1"><a href="index.html" >Python Setup and Usage</a> &#187;</li>
  382. <li class="nav-item nav-item-this"><a href=""><span class="section-number">5. </span>Using Python on a Mac</a></li>
  383. <li class="right">
  384. <div class="inline-search" role="search">
  385. <form class="inline-search" action="../search.html" method="get">
  386. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  387. <input type="submit" value="Go" />
  388. </form>
  389. </div>
  390. |
  391. </li>
  392. <li class="right">
  393. <label class="theme-selector-label">
  394. Theme
  395. <select class="theme-selector" oninput="activateTheme(this.value)">
  396. <option value="auto" selected>Auto</option>
  397. <option value="light">Light</option>
  398. <option value="dark">Dark</option>
  399. </select>
  400. </label> |</li>
  401. </ul>
  402. </div>
  403. <div class="footer">
  404. &copy; <a href="../copyright.html">Copyright</a> 2001-2023, Python Software Foundation.
  405. <br />
  406. This page is licensed under the Python Software Foundation License Version 2.
  407. <br />
  408. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  409. <br />
  410. See <a href="/license.html">History and License</a> for more information.<br />
  411. <br />
  412. The Python Software Foundation is a non-profit corporation.
  413. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  414. <br />
  415. <br />
  416. Last updated on Oct 02, 2023.
  417. <a href="/bugs.html">Found a bug</a>?
  418. <br />
  419. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.5.0.
  420. </div>
  421. </body>
  422. </html>