</>
Skip to content
NumPy lessons (4/28)

NumPy — Installation

Install with pip

pip install numpy

Install with conda

conda install numpy

Verify installation

import numpy as np
print(np.__version__)

Specific version

pip install numpy==1.24.0

Requirements.txt

numpy>=1.24.0

Virtual environment

python -m venv venv
source venv/bin/activate  # Linux/Mac
# venv\Scripts\activate  # Windows
pip install numpy

Troubleshooting

# Upgrade pip
pip install --upgrade pip

# Install with BLAS support
pip install numpy --no-binary numpy

Mini Practice

  1. Install NumPy
  2. Check version
  3. Create a simple array
  4. Verify installation

Up Next

Continue with Arrays - Creating arrays.

Related Topics

Frequently Asked Questions about Installation

What is Installation in NumPy?

Installation is a fundamental concept in NumPy. This lesson explains it step by step with clear examples, making it easy for beginners to understand.

How do I learn Installation?

Start by reading the explanation above, then try the code examples. Practice by modifying the examples and experimenting with different values. Hands-on practice is the best way to learn Installation.

Why is Installation important in NumPy?

Installation is essential for NumPy development. Understanding this concept will help you write better code and solve real-world problems more effectively.