[PYTHON] Initial settings for Mac (for data analysts)

My MacBook Pro has arrived at my house. You've come often, welcome. I was impressed because I used a MacBook Air with 4 GB of memory until just a few days ago. I `ll stick it~. So, I think it's the nth decoction, but I'll write down the software I put in and the environment construction instead of a memo.

spec

Software put in

Environment

Terminal appearance settings

After all, refer to this. → "Your terminal is not good" I use black letters (Ritchy) on the back of Japanese paper. You don't have to get tired of your eyes.

Sublime Text preferences

Prompt settings

Install Xcode developer tools

$ xcode-select --install

Homebrew installation

From Homebrew Official HP

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

wget

$ brew install wget

miniconda I want to manage various things by myself, so I will do it in the miniconda environment instead of anaconda.

$ cd ~/Downloads
$ bash Miniconda3-latest-MacOSX-x86_64.sh
$ conda -V #conda version check
$ python -V #Python version check

Python package installation

$ conda install -c conda-forge numpy

Like this, it basically pulls from conda-forge. If there is no package, we will respond accordingly. What I put in for the time being

Well, let's put the rest each time.

R Torima latest ver.4.0.2. Dropped from Cran page. Screen Shot 2020-08-31 at 22.12.13.png Then install normally. Recently, I'm using R on Jupyter, so I can't install RStudio.

Julia Let's include Julia as well. From Official HP. Go to the download page and drop it. It's still a young language, so it may have changed a lot. So the latest version (v1.5.1). Screen Shot 2020-08-31 at 22.18.27.png Then install normally.

$ exec '/Applications/Julia-1.5.app/Contents/Resources/julia/bin/julia'
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.1 (2020-08-25)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> 

did it.

Jupyter

$ conda install jupyter

I want to be able to use R and Julia as well as Python with jupyter notebook. Confirm.

$ jupyter kernelspec list
  python3    /Users/user/miniconda3/share/jupyter/kernels/python3

Since it is not included, set it. Julia Reference: Procedure to enable Julia on Jupyter Notebook on macOS Start Julia,

(@v1.5) pkg> add IJulia

R Reference: Use R with Jupyter.

$ R
> install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
> devtools::install_github('IRkernel/IRkernel')
> IRkernel::installspec()

How about this.

$ jupyter kernelspec list
Available kernels:
  ir           /Users/yamauchi/Library/Jupyter/kernels/ir
  julia-1.5    /Users/yamauchi/Library/Jupyter/kernels/julia-1.5
  python3      /Users/yamauchi/miniconda3/share/jupyter/kernels/python3

When I launch it ...

$ jupyter notebook

It's in! OK.

Finally

I think this kind of article is deadly upward compatible, but please forgive me. .. ..

Recommended Posts

Initial settings for Mac (for data analysts)
Anaconda 4.4.0 Initial Settings for Windows
Creating amateur python environment settings (for MAC)
Flask initial settings
Initial settings for using Python3.8 and pip on CentOS8
[Linux] [Initial Settings] System Settings
Spacemacs settings (for beginners)
Knowledge and study methods required for future data analysts
Summary of python environment settings for myself [mac] [ubuntu]
Proxy settings for urllib.request
[Linux] [Initial Settings] Table of Contents for Development Environment Setup
Data set for machine learning
IPMsg Log Converter for Mac
Python for Data Analysis Chapter 4
[Linux] [Initial Settings] Getting Started
Set Up for Mac (Python)
Python environment construction For Mac
Initial settings from Kubuntu installation
Python 3 series installation for mac
[Linux] [Initial Settings] [Flutter] Summary
Python for Data Analysis Chapter 2
[PyTorch] Data Augmentation for segmentation
Raspbian initial settings (Raspberry Pi 4)
Cocos2d-x ~ Installation Guide for Mac ~
[Linux] [Initial Settings] Backup & Recovery
Tips for data analysis ・ Notes
Ansible environment construction For Mac
Python for Data Analysis Chapter 3