更新时间:2023-11-18 14:10:40
pip
是特定于Python的软件包管理器,默认情况下,在许多系统上未安装该软件包管理器.
pip
is a package manager specific to Python, and is not installed by default on many systems.
因此,您首先需要安装pip
.假设您正在使用raspbian,则需要使用apt-get
命令,该命令是基于Debian的Linux系统(例如raspbian)的通用软件包管理器:
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
或Python 2版本:
or the Python 2 version:
sudo apt-get install python-pip
然后,您应该能够使用pip
安装Python软件包,例如twilio
.
then you should be able to install Python packages such as twilio
using pip
.
请参阅Raspberry Pi 安装Python软件包的指南.
See the Raspberry Pi guide for installing Python packages.