今天在玩树莓派的时候想要安装pip(python的包管理器)可是当输入
sudo apt-get install python-pip
直接给我来了个这个
pi@raspberrypi:~ $ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: gir1.2-glib-2.0 libdbus-glib-1-2 libexpat1-dev libgirepository-1.0-1 libpython-all-dev libpython-dev libpython2.7 libpython2.7-dev python-all python-all-dev python-cffi-backend python-crypto python-cryptography python-dbus python-dev python-enum34 python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-pip-whl python-pkg-resources python-pyasn1 python-secretstorage python-setuptools python-six python-wheel python-xdg python2.7-dev Suggested packages: python-crypto-dbg python-crypto-doc python-cryptography-doc python-cryptography-vectors python-dbus-dbg python-dbus-doc python-enum34-doc python-gi-cairo gnome-keyring libkf5wallet-bin gir1.2-gnomekeyring-1.0 python-fs python-gdata python-kde4 python-keyczar doc-base python-secretstorage-doc python-setuptools-doc The following NEW packages will be installed: gir1.2-glib-2.0 libdbus-glib-1-2 libexpat1-dev libgirepository-1.0-1 libpython-all-dev libpython-dev libpython2.7 libpython2.7-dev python-all python-all-dev python-cffi-backend python-crypto python-cryptography python-dbus python-dev python-enum34 python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-pip python-pip-whl python-pkg-resources python-pyasn1 python-secretstorage python-setuptools python-six python-wheel python-xdg python2.7-dev 0 upgraded, 31 newly installed, 0 to remove and 17 not upgraded. Need to get 32.8 MB of archives. After this operation, 51.6 MB of additional disk space will be used. Do you want to continue? [Y/n] Abort. pi@raspberrypi:~ $
一切正常却在出现[Y/n]选择时直接abort了,非常奇怪。不过幸好apt-get提供了-y参数只要使用
sudo apt-get install -y python-pip
默认问答为yes即可正常安装,猜测这里可能是apt被某种原因直接设置成了不允许问答,寻找答案中。。
续:发现系统重启后又一切正常了,真是what the f***!
文章来源: 树莓派上apt-get 安装pip直接abort