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 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.
在尝试为学校项目在Raspberry Pi上安装twilio时遇到问题,输入pip install twilio命令后提示bash: pip: command not found。解决方法是首先安装pip,因为pip不是默认预装在许多系统上的。对于使用Raspbian的用户,可以使用apt-get命令来安装Python 3或Python 2版本的pip,然后就能成功安装Python包如twilio了。
473

被折叠的 条评论
为什么被折叠?



