我已經為 python3 安裝了 pip:
$ pip3 -V
pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)
如果我嘗試升級到版本 8,我會得到以下結果:
$ sudo pip3 install --upgrade pip
Downloading/unpacking pip from https://pypi.python.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-8.1.2-py2.py3-none-any.whl#md5=0570520434c5b600d89ec95393b2650b
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.4
Not uninstalling pip at /usr/lib/python3/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
誰能告訴我為什麼它不升級到新版本?
答案1
實際上安裝成功,您可以透過鍵入來檢查它
sudo pip3 -V
答案2
安裝 anaconda 並立即安裝所有內容。 點擊此處查看蟒蛇