Menu
Original article can be found here (source): Artificial Intelligence on Medium
- I recently upgrade to macOS Catalina and I made a clean installation Anaconda Navigator. I install again Anaconda but it didn't work. I also reinstall the OS but didn't work too. The permissions of the files are ok, I can read and write files. I don't know why I can't open a.
- So we can understand if you do not want to upgrade to Catalina. The correct version of Python to install therefore depends on your operating system. If you do not know what you are running, go to the Apple menu and choose about this Mac. If you are running Catalina, you need to install Python version 3.7.6.
In my previous blog , I walked you through all steps to run a jupyter notebook. If you’re a data scientist or developer and upgraded to macOS Catalina 10.15, then you might have faced some issues with jupyter notebook.The latest version of Mac Catalina functionality is different than the previous s version. Follow below steps to configure and run jupyter notebook.
Install Anaconda3 Python 3.7 on MacOS Catalina Beta 10.15. Anaconda or Miniconda version: Anaconda3-2019.03-MacOSX-x8664. Operating System: conda info PASTE OUTPUT HERE: conda list -show-channel-urls PASTE OUTPUT HERE: ?.
We will go through each step one by one configure jupyter notebook.
Step I : Install the anaconda distribution.
The preferable way to go forward is to use command line installer instead of graphic . Use this link to download CLI https://repo.anaconda.com/archive/Anaconda3-2020.02-MacOSX-x86_64.sh
Once downloaded ,go to terminal and run
I will be using python3 as python2 is not much in use now a days.
To start the installation run below command in your terminal.
Instead of Downloads use the path where you have install anaconda distribution and replace Anaconda3–2020.02-MacOSX-x86_64.sh with your filename.
![Anaconda mac download Anaconda mac download](https://www.chip.de/ii/9/0/2/3/6/4/9/6/dd36b04c8b0a865c.jpg)
You need to press Enter here ,
Read the license agreement and scroll to bottom
Enter yes. Next it will ask for location to install.
Download access for mac free trial. Press Enter .
Once you press enter , message props “Do you wish the installer to initialize Anaconda3 by running conda init?”
Enter Yes
The default shell for Catalina is zsh so our next step will be to install Zsh
Step II :Set-up macOs Terminal with Zsh
For Catalina
First set-up Xcode command-line tools, also known as
xcode-select
If there is some issue try running below script.
Then you need to install software package management system for macOS i.e Homebrew.
Run the below command
Next step is to install default shell for Catalina ,i.e zsh.
Now we need to integrate zsh in iterm2. If you are not having iterm2 ,install it using brew.
Anaconda Mac Download
For zsh — iterm2 integration ,
Step III :Conda ,Pip and Jupyter installation
Anaconda Download Mac Os Catalina Safari
Conda can be installed using brew
Update conda to latest version
For pip you can either use conda or easy install
Conda way
Easy install way
For nbextensions run following command
Lastly for jupyter use brew
Step IV :Creating Virtual environment and link it to ipykernel
![Anaconda Download Mac Os Catalina Anaconda Download Mac Os Catalina](/uploads/1/1/8/8/118820749/459099708.png)
To create a virtual environment pass the name of environment with python version to be used. Suppose we name our environment as cat and want to use python 3.8.2 version.
Activate the environment
Install ipykernel
Link kernel to virtual environment.
If you want to display the name of environment say “Cat_Virtual”
Go to iterm2 and run
Open any notebook , it will appear like this,
Enjoy ? !!