Python 如何安装pip3 3.5版?
我在Ubuntu14.04上看到过一个版本的pip3.5,但我不确定它是如何安装的,因为似乎没有pip3.5可用 我试过:Python 如何安装pip3 3.5版?,python,pip,Python,Pip,我在Ubuntu14.04上看到过一个版本的pip3.5,但我不确定它是如何安装的,因为似乎没有pip3.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,
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版
更新:
我通过以下方式安装了numpy
:
pip3 install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/lib/python3.4/dist-packages
试图在python3.5中使用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'
我错误地认为,为了修复这个问题,我应该更新到pip版本3.5,以匹配python版本3.5
所以现在的问题是如何将
numpy
安装到python版本3.5?从这里下载获取pip.py
然后使用您选择的python解释器:
python3.5 get-pip.py --user
然后,通过将pip与-m
开关一起使用,您可以确定所使用的解释器
python3.5 -m pip install --user numpy
编辑:我有一台Ubuntu14.04桌面在工作,有同样的问题,没有找到pip。从这里下载
获取pip.py
然后使用您选择的python解释器:
python3.5 get-pip.py --user
然后,通过将pip与-m
开关一起使用,您可以确定所使用的解释器
python3.5 -m pip install --user numpy
编辑:我有一台Ubuntu14.04桌面在工作,有同样的问题,没有找到pip。你为什么想要pip 3.5?当前版本是(不要与Python版本3.5混淆)。Ubuntu14.04的包repo包含
pip-1.5.4
,并且从来没有pip-3.x
版本。@Aurora0001请参见update@birryree请参阅UpdatePython3已经带来了pip,如果有任何东西使用了python3-m pip…
为什么要使用PIP3.5?当前版本是(不要与Python版本3.5混淆)。Ubuntu14.04的包repo包含pip-1.5.4
,并且从来没有pip-3.x
版本。@Aurora0001请参见update@birryree请参阅updatepython 3已带来pip,如果有任何东西使用了python3-mpip…
我看到你有一个/usr/local
安装。如果您有适当的权限,您可以删除--user
选项。我看到您有一个/usr/local
安装。如果您有适当的权限,可以删除--user
选项。