Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install python packages like pip, numpy on Amazon EC2 - ubuntu

Need to install python packages like pip, numpy, cv2 on an Amazon EC2 instance of Ubuntu. I tried using sudo apt-get install python-pip but got below given error:

ubuntu@ip-172-31-35-131:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package python-pip

like image 678
Rahul Agnihotri Avatar asked Aug 05 '18 22:08

Rahul Agnihotri


People also ask

How do I install pip for Python?

Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process. Voila!


1 Answers

Try first sudo apt-get update then

sudo apt-get install python-pip

like image 55
Omar Merghany Avatar answered Oct 21 '22 03:10

Omar Merghany