You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: setup.Rmd
+93-56Lines changed: 93 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Overview
4
4
5
-
In this chapter, you'll learn how to install all of that software
5
+
In this chapter, you'll learn how to install all of the software
6
6
needed to do the data science covered in this book on your own computer.
7
7
8
8
## Chapter learning objectives
@@ -16,14 +16,14 @@ By the end of the chapter, readers will be able to do the following:
16
16
## Installing software on your own computer
17
17
18
18
This section will provide instructions for installing the software required by
19
-
this book on our own computers.
19
+
this book on your own computer.
20
20
Given that installation instructions can vary widely based on the computer setup,
21
21
we have created instructions for multiple operating systems.
22
22
In particular, the installation instructions below have been verified to work
23
23
on a computer that:
24
24
25
25
- runs one of the following operating systems: Ubuntu 20.04, macOS Big Sur (version 11.4.x or 11.5.x), Windows 10 Professional, Enterprise or Education (version 2004, 20H2, or 21H1),
26
-
-can connect to networks via a wireless connection,
26
+
-has a connection to the internet,
27
27
- uses a 64-bit CPU,
28
28
- uses English as the default language.
29
29
@@ -58,9 +58,10 @@ sudo apt install git
58
58
59
59
### Miniconda
60
60
61
-
To run Jupyter notebooks on our computers,
62
-
we will need to install the web-based platform JupyterLab.
63
-
But JupyterLab relies on Python; we can install this via
61
+
To run Jupyter notebooks on your computer,
62
+
you will need to install the web-based platform JupyterLab.
63
+
But JupyterLab relies on Python, so we need to install Python first.
64
+
We can install Python via
64
65
the \index{miniconda} [miniconda Python package distribution](https://docs.conda.io/en/latest/miniconda.html).
65
66
66
67
**Windows:** To install miniconda on Windows, download
@@ -73,35 +74,57 @@ by opening the Start Menu and searching for the program called
73
74
When this opens, you will see a prompt similar to
74
75
`(base) C:\Users\your_name`.
75
76
76
-
**MacOS:** To install miniconda on MacOS, download
77
+
**MacOS:** To install miniconda on MacOS, you will need to use a different
78
+
installation method depending on the type of processor chip your computer has.
79
+
80
+
If your Mac computer has an Intel x86 processor chip you can download
77
81
the [latest Python 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.pkg).
78
82
After the download has finished, run the installer and accept the default
79
83
configuration for all pages.
80
84
81
-
**Ubuntu:** To install miniconda on Ubuntu, we first download
85
+
If your Mac computer has an Apple M1 processor chip you can download
86
+
the [latest Python 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh).
87
+
After the download has finished, you need to run the downloaded script in the terminal using a command
88
+
like:
89
+
90
+
```
91
+
bash path/to/Miniconda3-latest-MacOSX-arm64.sh
92
+
```
93
+
94
+
Make sure to replace `path/to/` with the path of the folder
95
+
containing the downloaded script. Most computers will save downloaded files to the `Downloads` folder.
96
+
If this is the case for your computer, you can run the script in the terminal by typing:
97
+
98
+
```
99
+
bash Downloads/Miniconda3-latest-MacOSX-arm64.sh
100
+
```
101
+
102
+
The instructions for the installation will then appear.
103
+
Follow the prompts and agree to accepting the license,
104
+
the default installation location,
105
+
and to running `conda init`, which makes `conda` available from the terminal.
106
+
107
+
**Ubuntu:** To install miniconda on Ubuntu, first download
82
108
the [latest Python 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh).
83
109
After the download has finished, open the terminal and execute the following
84
-
commands:
110
+
command:
85
111
86
112
```
87
113
bash path/to/Miniconda3-latest-Linux-x86_64.sh
88
114
```
89
115
90
-
> **Note:** Most often, this file is downloaded to the Downloads directory,
0 commit comments