How To Run Jupyter Notebook , Pandas And Numpy On M1 MacBook ?
Last month apple came with their own m1 chips with arm architecture. Till current date only Jupyter Notebook is supported by the m1 chip but you don't need to worry you can use pandas and numpy on your new m1 with the help of rosetta 2.
Install Python3
1st we will see how we can setup python3 on m1 Mac , the process is quite simple open terminal on your m1 Mac and type python3 and hit enter if you have already installed python then an interactive python shell will open, if you haven't install then it will say that given package is not installed, it need developer tools and will ask you if you want to install press return python3 will be installed.
Install Jupyter Notebook
Open terminal and type the following command
pip3 install jupyterlab
After typing this command press enter , your package will begin to install. Check if any warning is raised that given package is not on path. if such warning is raised this means your python package is not installed on PATh. You have to add the path shown in warning to your Macos path variable. After adding the path shown in warning to users $PATH . Type. jupyter-lab on your terminal and press enter. Hurray Jupiter Notebook is installed on your m1(Please note that if no warning was thrown during pip install then your installation was successful you don't have to add any path to PATH variable).
Install Numpy and Pandas
softwareupdate --install-rosetta
pip3 install numpy
pip3 install pandas
This is the complete procedure for setting up numpy , Jupiter notebook and pandas on your m1 Mac.
For any suggestion or improvement feel free to write it in comment box.
This is, by far, the most lucid and simple set of explanations to get the pandas up and running in M1 mac! The instructions I found everywhere else were just a little too geeky!
ReplyDelete