系统自带的默认 python 版本是 2.7.3
python -V
Python 2.7.3
但是当安装 python-pip 时,却提示需要安装 2.6:
apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-pkg-resources python-setuptools python2.6 python2.6-minimal
Suggested packages:
python-distribute python-distribute-doc python2.6-doc binfmt-support
Recommended packages:
python-dev-all
The following NEW packages will be installed:
python-pip python-pkg-resources python-setuptools python2.6
python2.6-minimal
0 upgraded, 5 newly installed, 0 to remove and 11 not upgraded.
Need to get 561 kB/4,475 kB of archives.
After this operation, 14.5 MB of additional disk space will be used.
Do you want to continue [Y/n]?
所以我用了这样的方法:
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
easy_install pip
1
LazyZhu 2015-06-25 15:48:26 +08:00
Debian7 的问题,为了兼容性
https://packages.debian.org/wheezy/python-pip Debian 8 就没有了 https://packages.debian.org/jessie/python-pip |
2
Nevervoid 2015-07-20 14:53:04 +08:00
上海电信表示还要给树莓派做翻墙……好蛋疼。。。
|