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: content/en/install.md
+196-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ sidebar: false
5
5
6
6
The only prerequisite for NumPy is Python itself. If you don't have Python yet and want the simplest way to get started, we recommend you use the [Anaconda Distribution](https://www.anaconda.com/distribution) - it includes Python, NumPy, and other commonly used packages for scientific computing and data science.
7
7
8
-
NumPy can be installed with `conda`, with `pip`, or with a package manager on macOS and Linux. For more detailed instructions, consult our [Python and NumPy installation guide](/installing-python-and-numpy-guide).
8
+
NumPy can be installed with `conda`, with `pip`, or with a package manager on macOS and Linux. For more detailed instructions, consult our [Python and NumPy installation guide](#python-numpy-install-guide) below.
9
9
10
10
## conda
11
11
@@ -22,3 +22,198 @@ If you use `pip`, you can install it with:
22
22
```bash
23
23
pip install numpy
24
24
```
25
+
26
+
<aname="python-numpy-install-guide"></a>
27
+
# Python and NumPy installation guide
28
+
29
+
Installing and managing packages in Python is complicated, there are a
30
+
number of alternative solutions for most tasks. This guide tries to give the
31
+
reader a sense of the best (or most popular) solutions, and give clear
32
+
recommendations. It focuses on users of Python, NumPy, and the PyData (or
33
+
numerical computing) stack on common operating systems and hardware.
34
+
35
+
## Recommendations
36
+
37
+
We'll start with recommendations based on the user's experience level and
38
+
operating system of interest. If you're in between "beginning" and "advanced",
39
+
please go with "beginning" if you want to keep things simple, and with
40
+
"advanced" if you want to work according to best practices that go a longer way
41
+
in the future.
42
+
43
+
### Beginning users
44
+
45
+
On all of Windows, macOS, and Linux:
46
+
47
+
- Install [Anaconda](https://www.anaconda.com/distribution/) (it installs all
48
+
packages you need and all other tools mentioned below).
49
+
- For writing and executing code, use notebooks in
50
+
[JupyterLab](https://jupyterlab.readthedocs.io/en/stable/index.html) for
51
+
exploratory and interactive computing, and
52
+
[Spyder](https://www.spyder-ide.org/) or [Visual Studio Code](https://code.visualstudio.com/)
53
+
for writing scripts and packages.
54
+
- Use [Anaconda Navigator](https://docs.anaconda.com/anaconda/navigator/) to
55
+
manage your packages and start JupyterLab, Spyder, or Visual Studio Code.
to install the package you need for the task or project you're working on.
66
+
- Unless you're fine with only the packages in the `defaults` channel, make `conda-forge`
67
+
your default channel via [setting the channel priority](https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge).
68
+
69
+
70
+
#### Linux
71
+
72
+
If you're fine with slightly outdated packages and prefer stability over being
73
+
able to use the latest versions of libraries:
74
+
- Use your OS package manager for as much as possible (Python itself, NumPy, and
75
+
other libraries).
76
+
- Install packages not provided by your package manager with `pip install somepackage --user`.
0 commit comments