VPS上默认的python版本是2.6.6,按照网上安装pip时,报错如下:
|
|
官方安装方法:12curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pypython get-pip.py
通过详细的查看官方说明,发现了这样一行说明
The get-pip.py script is supported on the same python version as pip. For the now unsupported Python 2.6, alternate script is available here.
所以python2.6 下安装pip的正确安装方法是:12curl https://bootstrap.pypa.io/2.6/get-pip.py -o get-pip.pypython get-pip.py