{"id":1368,"date":"2024-10-28T11:14:14","date_gmt":"2024-10-28T11:14:14","guid":{"rendered":"https:\/\/zahiralam.com\/blog\/?p=1368"},"modified":"2024-10-28T11:47:20","modified_gmt":"2024-10-28T11:47:20","slug":"quick-and-easy-guide-install-python-3-13-on-mac-m1-m2-and-m3","status":"publish","type":"post","link":"https:\/\/zahiralam.com\/blog\/quick-and-easy-guide-install-python-3-13-on-mac-m1-m2-and-m3\/","title":{"rendered":"Quick and Easy Guide: Install Python 3.13 on Mac M1, M2, and M3"},"content":{"rendered":"\n<p>This guide walks you through installing Python 3.13 on Mac M1, M2, and M3 using Homebrew. Python 3.13 offers enhanced performance features like a JIT compiler and improved interpreter capabilities.\n\n\n\n<h4 class=\"wp-block-heading\">Prerequisites<\/h4>\n\n\n\n<p>Ensure Homebrew is installed. If not, run:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-1\">\/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot;<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#%2Fbin%2Fbash%20-c%20%22%24%28curl%20-fsSL%20https%3A%2F%2Fraw.githubusercontent.com%2FHomebrew%2Finstall%2FHEAD%2Finstall.sh%29%22\">\n                            <button class=\"copy-button\" data-label=\"\/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot;\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Steps to Install Python 3.13<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Update Homebrew:<\/strong><\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-2\">brew update<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#brew%20update\">\n                            <button class=\"copy-button\" data-label=\"brew update\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li><strong>Install Python 3.13:<\/strong><\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-3\">brew install python@3.13<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#brew%20install%20python%403.13\">\n                            <button class=\"copy-button\" data-label=\"brew install python@3.13\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li><strong>Verify the Installation:<\/strong><\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-4\">python3 --version<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#python3%20--version\">\n                            <button class=\"copy-button\" data-label=\"python3 --version\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>Ensure it shows <code>Python 3.13.0<\/code>.\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Link the Version (if necessary):<\/strong><\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-5\">brew link python@3.13<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#brew%20link%20python%403.13\">\n                            <button class=\"copy-button\" data-label=\"brew link python@3.13\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li><strong>Add Python to PATH (if required):<\/strong><br>Update <code>~\/.zshrc<\/code>:<\/li>\n<\/ol>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-6\">export PATH=&quot;\/opt\/homebrew\/opt\/python@3.13\/bin:$PATH&quot;<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#export%20PATH%3D%22%2Fopt%2Fhomebrew%2Fopt%2Fpython%403.13%2Fbin%3A%24PATH%22\">\n                            <button class=\"copy-button\" data-label=\"export PATH=&quot;\/opt\/homebrew\/opt\/python@3.13\/bin:$PATH&quot;\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>Reload the shell:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-7\">source ~\/.zshrc<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#source%20~%2F.zshrc\">\n                            <button class=\"copy-button\" data-label=\"source ~\/.zshrc\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Managing Multiple Versions<\/h3>\n\n\n\n<p>To manage different versions, you can use:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-8\">python3.13 --version<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#python3.13%20--version\">\n                            <button class=\"copy-button\" data-label=\"python3.13 --version\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Optional: Set Up a Virtual Environment<\/h3>\n\n\n\n<p>Create an isolated environment using Python 3.13:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-9\">python3.13 -m venv myenv\nsource myenv\/bin\/activate<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#python3.13%20-m%20venv%20myenv%0Asource%20myenv%2Fbin%2Factivate\">\n                            <button class=\"copy-button\" data-label=\"python3.13 -m venv myenv\nsource myenv\/bin\/activate\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>This tutorial covers installation and basic setup, ensuring Python 3.13 runs efficiently on Mac M1, M2, and M3 models. Let me know if you need further customization!\n","protected":false},"excerpt":{"rendered":"<p>This guide walks you through installing Python 3.13 on Mac M1, M2, and M3 using Homebrew. Python 3.13 offers enhanced performance features like a JIT [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":1374,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[214],"tags":[28,17,249],"class_list":["post-1368","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-installation","tag-apple-silicon","tag-mac-m1-m2-m3","tag-python-3-13"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/comments?post=1368"}],"version-history":[{"count":1,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1368\/revisions"}],"predecessor-version":[{"id":1369,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1368\/revisions\/1369"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media\/1374"}],"wp:attachment":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media?parent=1368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/categories?post=1368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/tags?post=1368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}