Editing OSX set up Python (Anaconda)

From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 7: Line 7:
=== Download option #1 ===
=== Download option #1 ===


<font size="+1">Try to download the installer from either of these places:</font>
<font size="+1">Try to download the installer from [https://communitydata.science/~mako/Anaconda3-2019.10-MacOSX-x86_64.pkg this file which contains Anaconda and Python 3.7 for MacOS].</font>
 
* [https://repo.anaconda.com/archive/Anaconda3-2023.03-MacOSX-x86_64.pkg This file which contains Anaconda and Python 3.10 for MacOS for Intel-based Macs]
* [https://repo.anaconda.com/archive/Anaconda3-2023.03-MacOSX-arm64.pkg This file which contains Anaconda and Python 3.10 for MacOS for the newer M1 Macs]


=== Download option #2 ===
=== Download option #2 ===
If option 1 above doesn't work for any reason, download the Python 3.10 option from [https://www.anaconda.com/distribution/#download-section Anaconda's website]. If necessary, scroll down to the "macOS Installer" section.  
If option 1 above doesn't work for any reason, download the Python 3.7 option from [https://www.anaconda.com/distribution/#download-section Anaconda's website]. If necessary, scroll down to the "Anaconda 2019.10 for macOS Installer" section.  


=== Installation ===
=== Installation ===
Line 35: Line 32:


[[File:Macos-anaconda-self-delete.png|thumb|none|200px|Prompt from Package Installer asking if it is OK to trash the installation package.]]
[[File:Macos-anaconda-self-delete.png|thumb|none|200px|Prompt from Package Installer asking if it is OK to trash the installation package.]]
=== Special Steps for people using Mac OS 10.15 ===
If you are using MacOS 10.15 (Catalina) or above, you will need to configure the system to recognize Anaconda. You can find out which version of MacOS you have: you can click the Apple menu icon at the top left corner of your screen and then select the “About This Mac” command.
If the version number says '''10.15 or higher''' it means you have a pretty new computer (congratulations on that). It also means that you will need to have to do an additional step. It might be a good idea to raise your hand and ask a mentor for help with this part.
To do so, open Terminal.app (either using Command-space or opening '''Applications > Utilities > Terminal.app''' and entering the following:
<nowiki>/opt/anaconda3/bin/conda init zsh
</nowiki>
You should end up with something like this:
[[file:Macos-conda-zsh.png|thumb|none|alt=A terminal window showing the result of configuring Conda and MacOS Catalina.]]
Once you're done, you can quit Terminal (either with Command-Q or the menu option '''Terminal > Quit Terminal''').


== Test your Python install ==
== Test your Python install ==
Line 89: Line 103:
== Success! ==
== Success! ==


You have installed and configured Python. You can move on to the next step.
You have installed and configured Python. You can move on to the [[CDSW/Day_0_setup_and_tutorial|next step]].


[[Category:CDSW]]
[[Category:CDSW]]
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Template used on this page: