Skip to content

Installing numpy #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
28d6c59
Updated List of sections
Yodha-Sudarsi May 11, 2024
0bb3e5f
Updated index.md
Yodha-Sudarsi May 11, 2024
111553a
Added installing numpy.md file and updated the index.md
Yodha-Sudarsi May 13, 2024
f549e34
Added installing-numpy.md file and updated the index.md
Yodha-Sudarsi May 13, 2024
705e55e
Create installing-numpy.md for installation
Yodha-Sudarsi May 13, 2024
4cc563d
Merge branch 'animator:main' into main
Yodha-Sudarsi May 15, 2024
18c9837
Update index.md
Yodha-Sudarsi May 15, 2024
7c84dce
Create operations-on-arrays.md
Yodha-Sudarsi May 15, 2024
9e9e17f
Update index.md
Yodha-Sudarsi May 15, 2024
57f73ec
Update index.md
Yodha-Sudarsi May 15, 2024
5a23eb9
Rename installing-numpy.md to installing_numpy.md
Yodha-Sudarsi May 15, 2024
7477daf
Rename operations-on-arrays.md to operations_on_arrays.md
Yodha-Sudarsi May 15, 2024
23acb72
Update installing_numpy.md
Yodha-Sudarsi May 15, 2024
7201790
Update index.md
Yodha-Sudarsi May 19, 2024
6e317c6
Rename installing_numpy.md to installing-numpy.md
Yodha-Sudarsi May 19, 2024
4f0ab2e
Rename operations_on_arrays.md to operations-on-arrays.md
Yodha-Sudarsi May 19, 2024
dfc8c17
Merge branch 'animator:main' into main
Yodha-Sudarsi May 20, 2024
3e96184
Update operations-on-arrays.md
Yodha-Sudarsi May 20, 2024
a052aed
Update operations-on-arrays.md
Yodha-Sudarsi May 20, 2024
096f7d9
Merge pull request #1 from Yodha-Sudarsi/operation-on-arrays
Yodha-Sudarsi May 20, 2024
8d64b3d
Revert "Update operations-on-arrays.md"
Yodha-Sudarsi May 20, 2024
b33fe5c
Merge pull request #2 from Yodha-Sudarsi/revert-1-operation-on-arrays
Yodha-Sudarsi May 20, 2024
cbf4985
Delete contrib/numpy/operations-on-arrays.md
Yodha-Sudarsi May 20, 2024
b0982ec
Merge branch 'main' into installing-numpy
animator May 23, 2024
bfb9952
Update index.md
animator May 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contrib/numpy/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# List of sections

- [Installing NumPy](installing-numpy.md)
- [Introduction](introduction.md)
82 changes: 82 additions & 0 deletions contrib/numpy/installing-numpy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Installing NumPy

NumPy is the fundamental package for scientific computing in Python.
NumPy is used for working with arrays.

The only prerequisite for installing NumPy is Python itself.
#
**Step 1: Check if PIP is Installed**

Before installing NumPy, it's essential to ensure that PIP (Python Package Installer) is installed on your system. PIP is a package management system used to install and manage Python packages. You can verify if PIP is installed by running a simple command in your terminal or command prompt.

```bash
pip --version
```

If PIP is not currently installed on your system, you can install it by visiting the [pypi.org](https://pypi.org/project/pip/) webpage.

#

**Step 2: Installing PIP**

**get-pip.py**

This is a Python script that uses some bootstrapping logic to install pip.

Open a terminal / command prompt and run:

**Linux**
```bash
python get-pip.py
```

**Windows**
```bash
py get-pip.py
```

**MacOS**
```bash
python get-pip.py
```

#

**Step 3: Installing NumPy**

NumPy can be installed either through conda or pip.

If you use pip, you can install NumPy with:

```bash
pip install numpy
```

If you use conda, you can install NumPy from the defaults or conda-forge channels:

```
# Best practice, use an environment rather than install in the base env
conda create -n my-env
conda activate my-env
```

```
# If you want to install from conda-forge
conda config --env --add channels conda-forge
```

```
# The actual install command
conda install numpy
```

You can find more information about how to install [NumPy](https://numpy.org/install/) on numpy.org.

#

**Step 4: Check if NumPy is Installed**

We can utilize the "pip show" command not only to display the version but also to determine whether NumPy is installed on the system.
```bash
pip show numpy
```