Editing OSX set up Python (Anaconda)
From CommunityData
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 | <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> | ||
=== Download option #2 === | === Download option #2 === | ||
If option 1 above doesn't work for any reason, download the Python 3. | 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 === | ||
{{Notice|If you are on MacOS 10.15 (Catalina), '''you must follow an additional step''' | {{Notice|If you are on MacOS 10.15 (Catalina), '''you must follow an additional step'''. If you don't, Anaconda won't work quite right! }} | ||
To install Anaconda, simply open the package and follow the prompts. You may be asked to enter your password by Package Installer. | To install Anaconda, simply open the package and follow the prompts. You may be asked to enter your password by Package Installer. | ||
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.]] | ||
* If you are using MacOS 10.15 (Catalina) or above, you will need to configure the system to recognize Anaconda. 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.]] | |||
Quit Terminal (either with Command-Q or the menu option '''Terminal > Quit Terminal'''). | |||
== Test your Python install == | == Test your Python install == | ||
Line 50: | Line 58: | ||
One of the options (it's the middle option in the screenshot) should be called "Jupyter Notebook". Click that to open Jupyter Notebook! After a few seconds, you'll see a new tab open in your default browser. It will look something like this: | One of the options (it's the middle option in the screenshot) should be called "Jupyter Notebook". Click that to open Jupyter Notebook! After a few seconds, you'll see a new tab open in your default browser. It will look something like this: | ||
[[File: | REPLACE IMAGE WITH MAC SCREENSHOT: [[File:20200112_2.PNG|500px]] | ||
If for some reason you '''don't''' see something in your browser, let a mentor know. | If for some reason you '''don't''' see something in your browser, let a mentor know. | ||
To close Anaconda, right click on the Jupyter icon in task bar, and select "Close Window". The Jupyter icon looks like this: | |||
To close Anaconda, | |||
[[File:Capture20200112_3.PNG|100px]] | |||
<!-- | <!-- | ||
Line 89: | Line 84: | ||
== 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]] |