Global AI and Data Science

 View Only

Configuring Anaconda environment on macOS Catalina

By Kamal Mishra posted Tue November 12, 2019 02:28 PM

  
Please refer to my blog on medium configuring-anaconda-environment-on-macos-catalina on configuring Anaconda environment o macOS Catalina.

When we upgrade to latest macOS Catalina 10.15.x, we need to take care of few configuration steps to ensure Anaconda environment works fine. If we are using Anaconda distribution on our existing macOS for machine learning purposes leveraging Spyder, Jupyter notebook, Rstudio etc. along with multiple environments for using tensorflow, keras etc. then it may require some changes.

Here are the steps:

  1. The assumption is that some of these versions are installed and configured on macOS version prior to that of Catalina — Python 3.7.x, conda 4.7x etc.
  2. After upgrading to macOS Catalina, the Python Anaconda environment moves certain files from root directory to “Relocated Items” folder and the Anaconda navigator app does not work AS-IS.
  3. Go to the Anaconda site here to download “Anaconda 2019.10” for macOS installer (preferably choose version 3.7 and 64 bit command line installer)
  4. The downloaded file should be found in /Users/<username>/Downloads directory.
  5. Go to terminal app and provide execute access by using the command: chmod +x <name of Anaconda command line installer>. This should look like the following: chmod +x Anaconda3–2019.10-MacOSX-x86_64.sh
  6. Go to /Users/<username>/ and create a directory by using command “mkdir anaconda3” if it does not exist. We should point our path to this default location going forward i.e. /Users/<username>/anaconda3.
  7. Execute the installer file with upgrade option in this directory. i.e. $ pwd should point to /Users/<username>/anaconda3/ and then execute this command:  bash-3.2$ /Users/<username>/Downloads/Anaconda3–2019.10-MacOSX-x86_64.sh -u 
  8. Check for environment path by echo $PATH to see what is the existing path variables. Set the following to ensure path is configured appropriately. bash-3.2$ export PATH=”/Users/<username>/anaconda3/bin:$PATH” 
  9. Ensure to initialize conda environment for zsh since this is the default shell in Catalina that has changed from previous macOS version. bash-3.2$ conda init zsh
  10. Restart the terminal app and changes should reflect fine.

This blog talks about step by step points mentioned above to follow to configure appropriately. It also has some external reference from Team Anaconda on their GitHub references, troubleshooting points which can be found in the blog link.
#GlobalAIandDataScience
#GlobalDataScience
0 comments
22 views

Permalink