How to Install Numpy on Linux?
Last Updated :
30 Sep, 2021
Python NumPy is a general-purpose array processing package that provides tools for handling n-dimensional arrays. It provides various computing tools such as comprehensive mathematical functions, linear algebra routines. NumPy provides both the flexibility of Python and the speed of well-optimized compiled C code. Its easy-to-use syntax makes it highly accessible and productive for programmers from any background.
Pre-requisites:
The only thing that you need for installing Numpy on Windows are:
Installing Numpy on Linux using Conda:
If you want the installation to be done through conda, you can use the below command:
conda install -c anaconda numpy
Type in "y" for yes when prompted.
You will get a similar message once the installation is complete
Make sure you follow the best practices for installation using conda as:
- Use an environment for installation rather than in the base environment using the below command:
conda create -n my-env
conda activate my-env
Note: If your preferred method of installation is conda-forge, use the below command:
conda config --env --add channels conda-forge
Verifying Numpy Installation on Linux using Conda:
Use the below command to verify if the above package has successfully installed:
conda list numpy
You will get a similar message as shown below if the installation has been successful:

Installing Numpy on Linux using PIP:
Users who prefer to use pip can use the below command to install NumPy:
pip install numpy
You will get a similar message once the installation is complete:
It is a good programming practice to install packages in a virtual environment rather than installing them globally. PIP users can use the below command to create a virtual environment:
python3 -m venv my-env
Activate the virtual environment (ie, my-env) using the below command:
source my-env/bin/activate
Verifying Numpy Installation on Linux using PIP:
Use the below command to check if the package has been successfully installed:
python3 -m pip show numpy
You will get a similar message as shown below if the installation is successful:
Similar Reads
How to Install NuPIC on Linux? NuPIC (short for "Numenta Platform for Intelligent Computing") is an open-source platform for machine learning and artificial intelligence. It was developed by Numenta, a company founded by Jeff Hawkins, the creator of the PalmPilot and the co-founder of Handspring. NuPIC is based on the theory of t
4 min read
How to Install Python on Linux This guide explains how to install Python on Linux machines. Python has become an essential programming language for developers, data scientists, and system administrators. It's used for various applications, including web development, data science, automation, and machine learning.This comprehensiv
15+ min read
How to Install Pyproj on Linux? Pyproj is an Interface for the cartographic projections and coordinate transformations library (PROJ). In this article, we will look into the process of installing the Pyproj interface on a Linux machine. Pre-requisites: The only thing that you need for installing Numpy on Windows are: PythonPIP or
2 min read
How to Install Matplotlib on Linux? Matplotlib is a low-level library of Python which is used for data visualization. It is easy to use and emulates MATLAB like graphs and visualization. This library is built on the top of NumPy arrays and consist of several plots like line chart, bar chart, histogram, etc. It provides a lot of flexib
2 min read
How to Install Pillow on Linux? In this article, we will look into the various methods of installing the PIL package on a Linux machine. Python Imaging Library (expansion of PIL) is the de facto image processing package for Python language. It incorporates lightweight image processing tools that aid in editing, creating, and savin
2 min read
How to Install GD module on Linux? GD is a python library. It provides various features and an async-ready API wrapper for the geometry dash. It is easy to use. It is used to implement the geometry dash API and is also very handy to work with object-oriented design. Installing GD module on Linux Method 1: Using pip to install GD Pack
2 min read
How to Install Python sympy on Linux? Sympy is a Python library that is used to perform symbolic mathematics operations. It is a full-featured algebra system that keeps the code as simple as possible for more simplicity and efficiency. Sympy library depends on some other Python libraries like mpmath which is a core python library to per
2 min read
How to Install Rasterio on Linux? Rasterio is a python library for reading and writing on geospatial raster datasets. It is a GDAL and NumPy-based Python library for raster data. We can use any of the following methods to install Rasterio on our Linux machine. Method 1: Using pip command Prerequisites: We must have pip ( a python pa
2 min read
How to Install Keras on Linux? Keras is an open-source software library that offers a Python interface for ANN (artificial neural networks). It acts as an interface for the TensorFlow library. It offers consistent & simple APIs, minimizes the number of user actions required for common use cases, and provides clear & actio
2 min read
How to Install Numpy on Windows? Python NumPy is a general-purpose array processing package that provides tools for handling n-dimensional arrays. It provides various computing tools such as comprehensive mathematical functions, and linear algebra routines. NumPy provides both the flexibility of Python and the speed of well-optimiz
3 min read