在python3中安装带有pip(或pip3)的软件包

在python3中安装带有pip(或pip3)的软件包,python,ubuntu,pip,Python,Ubuntu,Pip,ubuntu 14.04 我是python新手,安装软件包时遇到问题。我也研究过类似的问题,但很难说它是否相关和最新 我不知道我需要做什么才能让它工作 pip --version The program 'pip' is currently not installed. You can install it by typing: sudo apt-get install python-pip pip3 --version pip 1.5.4 from /usr/lib/python3/di

ubuntu 14.04

我是python新手,安装软件包时遇到问题。我也研究过类似的问题,但很难说它是否相关和最新

我不知道我需要做什么才能让它工作

pip --version
The program 'pip' is currently not installed. You can install it by typing: 
sudo apt-get install python-pip


pip3 --version
pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)
我有几个版本的python,最新的

python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29) 
[GCC 4.8.4] on linux
当我尝试安装软件包时

pip3 install copy
Downloading/unpacking copy
Could not find any downloads that satisfy the requirement copy
Cleaning up...
No distributions at all found for copy
Storing debug log for failure in /home/ben/.pip/pip.log
我在类似的stackoverflow问题中看到,人们也去了日志并发布了这些问题

------------------------------------------------------------
/usr/bin/pip3 run on Thu Aug 18 20:25:27 2016
Downloading/unpacking copy
Getting page https://pypi.python.org/simple/copy/
Could not fetch URL https://pypi.python.org/simple/copy/: 404 Client             Error: Not Found
Will skip URL https://pypi.python.org/simple/copy/ when looking for    download links for copy
Getting page https://pypi.python.org/simple/
URLs to search for versions for copy:
* https://pypi.python.org/simple/copy/
Getting page https://pypi.python.org/simple/copy/
Could not fetch URL https://pypi.python.org/simple/copy/: 404 Client  Error: Not Found
Will skip URL https://pypi.python.org/simple/copy/ when looking for  download links for copy
Could not find any downloads that satisfy the requirement copy
Cleaning up...
Removing temporary dir /tmp/pip_build_ben...
No distributions at all found for copy
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in  main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line  278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,   bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1178, in  prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python3/dist-packages/pip/index.py", line 277, in  find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
pip.exceptions.DistributionNotFound: No distributions at all found for   copy
其他答案是这样的 “您需要通过HTTPS而不是HTTP获取pypi。”但我真的不明白这一点,也不知道我需要做什么来修复它


所以我的问题是,;我需要做什么才能安装python3版本的软件包?我需要安装pip,还是使用pip3更好

如果有多个python版本,请确保在要使用的python版本的目录中导航,转到“Scripts”文件夹并在那里运行pip命令。希望这能起作用。

如果您有多个python版本,请确保在要使用的python版本的目录中导航,转到“Scripts”文件夹并在那里运行pip命令。希望能奏效。

PyPi上似乎没有此软件包。你想安装什么? 您的pip版本非常旧—PIP1.5.4


您还可以使用
pip install-v
在安装时获取更多信息。

PyPi上似乎没有此软件包。你想安装什么? 您的pip版本非常旧—PIP1.5.4


您还可以使用
pip install-v
在安装时获取更多信息。

。你确定这就是你想要安装的软件包吗?就像@NilsWerner说的,你的问题是你试图安装的软件包不存在。这使问题的其余部分变得毫无意义。。你确定这就是你想要安装的软件包吗?就像@NilsWerner说的,你的问题是你试图安装的软件包不存在。这使得问题的其余部分变得毫无意义。