Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bash: pip: command not found for an Install

I am trying to install pip install twilio onto a raspberry pi for a school project but, I type in the command the it says bash: pip: command not found. I have tried to intall many pip packages, but it still won't read that code. Is there something that I am doing wrong?

like image 988
Ricky. Z Avatar asked May 03 '15 17:05

Ricky. Z


People also ask

Why is my pip install not working?

This error usually means there's a problem with the Python installation or the system variable PATH is not set up correctly. Try reinstalling Python and all its components to fix the problem. The easiest way is via the Python executable installer.

Why pip install module not found?

This is caused by the fact that the version of Python you're running your script with is not configured to search for modules where you've installed them. This happens when you use the wrong installation of pip to install packages.


1 Answers

pip is a package manager specific to Python, and is not installed by default on many systems.

So you first need to install pip. Assuming you are using raspbian, you need to use the apt-get command, which is the general-purpose package manager for Debian-based Linux systems such as raspbian:

sudo apt-get install python3-pip

or the Python 2 version:

sudo apt-get install python-pip

then you should be able to install Python packages such as twilio using pip.

See this archive of the old Raspberry Pi guide for installing Python packages.

like image 165
DNA Avatar answered Oct 01 '22 08:10

DNA