All Courses

Having trouble installing numpy on Ubuntu 18.04

By, a month ago
  • Bookmark

Having trouble installing NumPy on Ubuntu 18.04 how to deal with this issue

1 Answer

To install Numpy on Ubuntu 18.04, you can follow these steps:

  1. Open a terminal window by pressing Ctrl+Alt+T.
  2. Update the package index and upgrade the system with the following commands:
sudo apt update
sudo apt upgrade

3.Install the Python package manager pip by running the following command:

  sudo apt install python3-pip

4. Install Numpy using pip by running the following command:

sudo pip3 install numpy

Note that we are using pip3 instead of pip to ensure that the package is installed for Python 3.

5. Verify the installation by starting a Python interpreter and importing Numpy:

>>> import numpy

If the installation was successful, you should not see any error messages.

If you encounter any errors during the installation process, please let me know the error message and I can help you troubleshoot further.

Your Answer


Live Masterclass on : "How Machine Get Trained in Machine Learning?"

Mar 30th (7:00 PM) 516 Registered
More webinars

Related Discussions

Running random forest algorithm with one variable

View More