{"id":146,"date":"2024-02-10T19:19:44","date_gmt":"2024-02-10T19:19:44","guid":{"rendered":"https:\/\/zahiralam.com\/blog\/?p=146"},"modified":"2024-08-06T07:31:39","modified_gmt":"2024-08-06T07:31:39","slug":"conda-installation-on-apple-silicon-mac-simplified-step-by-step-instructions","status":"publish","type":"post","link":"https:\/\/zahiralam.com\/blog\/conda-installation-on-apple-silicon-mac-simplified-step-by-step-instructions\/","title":{"rendered":"Conda Installation on Apple Silicon Mac: Simplified Step-by-Step Instructions"},"content":{"rendered":"\n<p>Conda is a powerful package manager and environment creator widely used in data science and scientific computing. Here&#8217;s how to install it on your Apple Silicon Mac:\n\n\n\n<h2 class=\"wp-block-heading\">Choosing the Right Installer:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Miniconda:<\/strong>&nbsp;A smaller,&nbsp;focused option for package management.&nbsp;Great for new users.<\/li>\n\n\n\n<li><strong>Anaconda:<\/strong>&nbsp;Includes Miniconda and pre-selected scientific packages,&nbsp;perfect for immediate development.<\/li>\n<\/ul>\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\">Download the Installer:<\/h2>\n\n\n\n<p>1. Visit the conda website:\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/latest\/user-guide\/install\/macos.html\" target=\"_blank\">https:\/\/docs.conda.io\/projects\/conda\/en\/latest\/user-guide\/install\/macos.html<\/a>\n\n\n\n<p>2. Under &#8220;Download the installer,&#8221; choose either\u00a0<strong>Miniconda<\/strong>\u00a0or\u00a0<strong>Anaconda<\/strong>.\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"270\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image.png\" alt=\"\" class=\"wp-image-873\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image.png 1022w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-300x79.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-768x203.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/figure>\n\n\n\n<p>3. <strong>Crucially, select the Apple Silicon (&#8220;Apple M1 64-bit pkg&#8221;) version<\/strong>\u00a0under &#8220;Platform.&#8221;\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"1024\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-1-847x1024.png\" alt=\"\" class=\"wp-image-874\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-1-847x1024.png 847w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-1-248x300.png 248w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-1-768x928.png 768w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-1-1271x1536.png 1271w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-1.png 1372w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<p>4. Or directly you can download from below link:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-1\">https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-MacOSX-arm64.pkg<\/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#https%3A%2F%2Frepo.anaconda.com%2Fminiconda%2FMiniconda3-latest-MacOSX-arm64.pkg\">\n                            <button class=\"copy-button\" data-label=\"https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-MacOSX-arm64.pkg\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Installation Steps:<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Double-click the downloaded .pkg file.<\/li>\n\n\n\n<li>Follow the on-screen prompts. Accept the defaults if unsure (you can customize later).<\/li>\n<\/ol>\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Post-Installation Setup:<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open a new terminal window<\/strong>&nbsp;(changes won&#8217;t apply to the current one).<\/li>\n\n\n\n<li><strong>Verify the installation with&nbsp;<code>conda list<\/code>.<\/strong>&nbsp;You should see a list of installed packages.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"679\" src=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-2-1024x679.png\" alt=\"\" class=\"wp-image-876\" srcset=\"https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-2-1024x679.png 1024w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-2-300x199.png 300w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-2-768x509.png 768w, https:\/\/zahiralam.com\/blog\/wp-content\/uploads\/2024\/08\/image-2.png 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a Python 3.10 Environment with conda on Apple Silicon Mac<\/h2>\n\n\n\n<p>1. Open a terminal window.\n\n\n\n<p>2. Create a new environment named <code><strong>myenv<\/strong><\/code> with <strong>Python 3.10<\/strong>:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-2\">conda create -n myenv python=3.10<\/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#conda%20create%20-n%20myenv%20python%3D3.10\">\n                            <button class=\"copy-button\" data-label=\"conda create -n myenv python=3.10\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>3. Activate the newly created environment:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-3\">conda activate myenv<\/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#conda%20activate%20myenv\">\n                            <button class=\"copy-button\" data-label=\"conda activate myenv\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p style=\"font-size:18px\">4. Verify the Python version:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-4\">python --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#python%20--version\">\n                            <button class=\"copy-button\" data-label=\"python --version\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p style=\"font-size:18px\">5. Expected output :\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-5\">Python 3.10.x<\/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#Python%203.10.x\">\n                            <button class=\"copy-button\" data-label=\"Python 3.10.x\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p style=\"font-size:18px\">6. Deactivate the environment:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-6\">conda deactivate<\/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#conda%20deactivate\">\n                            <button class=\"copy-button\" data-label=\"conda deactivate\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting:<\/h2>\n\n\n\n<p>If you encounter issues, refer to the conda documentation:\n\n\n\n<p><a href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/latest\/user-guide\/install\/macos.html\">https:\/\/docs.conda.io\/projects\/conda\/en\/latest\/user-guide\/install\/macos.html<\/a>\n\n\n\n<p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Tips:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create isolated environments for different projects with&nbsp;<code class=\"\">conda create<\/code>.<\/li>\n\n\n\n<li>Install specific packages with&nbsp;<code class=\"\">conda install &lt;package_name&gt;<\/code>.<\/li>\n\n\n\n<li>Consult the conda documentation for advanced usage and configuration:<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/latest\/\" target=\"_blank\">https:\/\/docs.conda.io\/projects\/conda\/en\/latest\/<\/a><\/li>\n<\/ul>\n\n\n\n<p>By following these steps and using the provided commands, you&#8217;ll have conda up and running on your Apple Silicon Mac, ready to manage your packages effectively!\n","protected":false},"excerpt":{"rendered":"<p>Conda is a powerful package manager and environment creator widely used in data science and scientific computing. Here&#8217;s how to install it on your Apple [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":878,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[214],"tags":[34,28,17,33],"class_list":["post-146","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-installation","tag-anaconda","tag-apple-silicon","tag-mac-m1-m2-m3","tag-miniconda"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/146","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=146"}],"version-history":[{"count":9,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":877,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/146\/revisions\/877"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media\/878"}],"wp:attachment":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}