我已經看到在Ubuntu 14.04上安裝的pip3.5的版本,但我不確定它是如何安裝的,因爲看起來沒有pip3.5可用。如何安裝pip3版本3.5?
我已經試過:
pip3 install --upgrade pip3==3.5
Collecting pip==3.5
Could not find a version that satisfies the requirement pip==3.5 (from versions: 0.2, 0.2.1, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 1.0, 1.0.1, 1.0.2, 1.1, 1.2, 1.2.1, 1.3, 1.3.1, 1.4, 1.4.1, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 6.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.1.0, 6.1.1, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.1.0, 7.1.1, 7.1.2, 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.1.0, 8.1.1, 8.1.2, 9.0.0, 9.0.1)
No matching distribution found for pip==3.5
如何安裝PIP版本3.5?
更新:
pip3 install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/lib/python3.4/dist-packages
試圖在python3.5使用numpy
導致錯誤:
我通過安裝numpy
/usr/local/bin/python3.5
Python 3.5.0 (default, Jan 20 2017, 10:14:23)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import numpy as np
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'numpy'
但numpy的安裝:
pip3 install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/lib/python3.4/dist-packages
我錯誤地認爲要解決問題,我應該更新到pip版本3.5以匹配python版本3.5。
所以現在問題是如何安裝numpy
到python版本3.5?
爲什麼要點pip 3.5?當前版本是[9.0.1](https://pypi.python.org/pypi/pip)(不要與** Python版本3.5 **混淆)。 – Aurora0001
Ubuntu 14.04的軟件包回購包含'pip-1.5.4',並且從未有過'pip-3.x'版本。 – birryree
@ Aurora0001請參閱更新 –