我已经看到在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请参阅更新 –