Installation Guide Before Kick off¶
The instructions in this page will be for all two operating systems: macOS and Windows.
For macOS, please use the terminal. For Window users, please use PowerShell (run as Administrator). From now on, by saying to run
We mean by copying and pasting (or typing) the code into the terminal/Powershell and hit enter(return)
Install language environments (You only need 1)¶
Python¶
I suggest using pyenv to install python for better version management. The installation process varies by operating system:
For macOS:¶
- We will use brew to install pyenv. First, let's check if you already have brew installed
- If you already have brew installed, jump to step 4. Other wise run
-
Brew will then gives instructions for you to run 3 lines in the terminal. Run it! Below is an example but my 3 lines will be different from yours
5. Add pyenv to your shell configuration: - For bash, add to
4. Now, you with brew, let install pyenv:
~/.bashrc: - For zsh, add to~/.zshrc:
For Windows:¶
-
Install pyenv-win using PowerShell (run as Administrator):
-
Add System Environment Variables:
- Open System Properties > Advanced > Environment Variables
- Add to System Variables:
- PYENV:
%USERPROFILE%\.pyenv\pyenv-win - PYENV_HOME:
%USERPROFILE%\.pyenv\pyenv-win
- PYENV:
- Add to Path:
%USERPROFILE%\.pyenv\pyenv-win\bin%USERPROFILE%\.pyenv\pyenv-win\shims
Now with pyenve, we can install python for BOTH operating systems:
- Install Python:
- Verify the installation:
Check pip installation¶
Pip is Python's package installer. It usually comes with Python, but it's good to verify the installation:
- Check if pip is installed: If pip is not installed or you need to upgrade it:
For macOS/Linux:¶
For Windows:¶
After installation, verify pip is working:
Jupyter Notebook (Optional)¶
The installation process is the same for all operating systems:
- Install Jupyter using pip:
- Verify the installation:
- Launch Jupyter Notebook:
R¶
For macOS:¶
- Download and install R from CRAN
For Windows:¶
Install IDE¶
For your local Integrated Development Environment (IDE), We suggest using Visual Studio Code (VS Code) for Python and RStudio for R.
VS Code for Python¶
Head to the VS Code official website to download and install the version that matches your operating system.
RStudio for R¶
For RStudio, please head to RStudio official website to download and install the version that matches your operating system.