Bash:pip:找不到安装命令 [英] Bash: pip: command not found for an Install

查看:1386
本文介绍了Bash:pip:找不到安装命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试在学校项目的树莓派上安装 pip install twilio ,但是,我键入的命令显示 bash:pip:not found.我已经尝试安装许多pip软件包,但仍然不会读取该代码.我做错了什么吗?

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是特定于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.

这篇关于Bash:pip:找不到安装命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆