我发现还有一些其他的帖子可以解决我的问题,但是没有一篇能解决我的问题,所以我正在创建这篇帖子。
我正在尝试为我的覆盆子Pi B+安装rpi.gpio。我安装了python3 pip,但每次尝试从命令行用pip3调用它时,我都会得到“command not found”。我用以下命令卸载了它:sudo apt-get remove python3-pip
然后重新安装sudo apt-get install python3-pip
得到了以下信息:Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python3-pip
0 upgraded, 1 newly installed, 0 to remove and 183 not upgraded.
Need to get 0 B/79.7 kB of archives.
After this operation, 361 kB of additional disk space will be used.
Selecting previously unselected package python3-pip.
(Reading database ... 70831 files and directories currently installed.)
Unpacking python3-pip (from .../python3-pip_1.1-3_all.deb) ...
Processing triggers for man-db ...
Setting up python3-pip (1.1-3) ...
但当我试着去做的时候:sudo pip3 install rpi.gpio
我得到:sudo: pip3: command not found
我尝试过来自这个站点和其他站点的建议,看看是否安装了pip以及在哪里找到它,但是我总是得到“command not found”:pi@raspberrypi ~ $ locate pip3
bash: locate: command not found
pi@raspberrypi ~ $ pip --version
bash: pip: command not found
pi@raspberrypi ~ $ python3-pip --version
bash: python3-pip: command not found
pi@raspberrypi ~ $ python3.2-pip --version
bash: python3.2-pip: command not found
我怎样才能让pip安装???这让我发疯了。。。。