Bash:pip:找不到安装命令

时间:2023-01-17 22:05:17

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?

我正在尝试将pip install twilio安装到一个学校项目的覆盆子pi上,但是,我输入命令它说bash:pip:command not found。我试图安装许多pip包,但它仍然不会读取该代码。有什么我做错了吗?

1 个解决方案

#1


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

pip是一个特定于Python的包管理器,默认情况下不会在许多系统上安装。

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:

所以你首先需要安装pip。假设您使用的是raspbian,则需要使用apt-get命令,这是基于Debian的Linux系统的通用包管理器,例如raspbian:

sudo apt-get install python3-pip

or the Python 2 version:

或Python 2版本:

sudo apt-get install python-pip

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

那么你应该能够使用pip安装Python包,例如twilio。

See the Raspberry Pi guide for installing Python packages.

请参阅Raspberry Pi指南以安装Python包。

#1


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

pip是一个特定于Python的包管理器,默认情况下不会在许多系统上安装。

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:

所以你首先需要安装pip。假设您使用的是raspbian,则需要使用apt-get命令,这是基于Debian的Linux系统的通用包管理器,例如raspbian:

sudo apt-get install python3-pip

or the Python 2 version:

或Python 2版本:

sudo apt-get install python-pip

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

那么你应该能够使用pip安装Python包,例如twilio。

See the Raspberry Pi guide for installing Python packages.

请参阅Raspberry Pi指南以安装Python包。