pip不会获取任何网址

时间:2014-04-03 16:59:29

标签: python pip

我刚安装了python 3.4(来自源代码),我想使用pip下载软件包。但每次我使用例如:

运行它
pip install -v django

我收到以下错误(与/root/.pip/pip.log中的输出相同:

/var/www/sova_move/newvenv/venv/bin/pip run on Thu Apr  3 18:16:44 2014
Downloading/unpacking django
  Getting page https://pypi.python.org/simple/django/
  Could not fetch URL https://pypi.python.org/simple/django/: connection error: [Errno 2] No such file or directory
  Will skip URL https://pypi.python.org/simple/django/ when looking for download links for django
  Getting page https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/: connection error: [Errno 2] No such file or directory
  Will skip URL https://pypi.python.org/simple/ when looking for download links for django
  Cannot fetch index base URL https://pypi.python.org/simple/
  URLs to search for versions for django:
  * https://pypi.python.org/simple/django/
  Getting page https://pypi.python.org/simple/django/
  Could not fetch URL https://pypi.python.org/simple/django/: connection error: [Errno 2] No such file or directory
  Will skip URL https://pypi.python.org/simple/django/ when looking for download links for django
  Could not find any downloads that satisfy the requirement django
Cleaning up...
  Removing temporary dir /var/www/sova_move/newvenv/venv/build...
No distributions at all found for django
Exception information:
Traceback (most recent call last):
  File "/var/www/sova_move/newvenv/venv/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/var/www/sova_move/newvenv/venv/lib/python3.4/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/var/www/sova_move/newvenv/venv/lib/python3.4/site-packages/pip/req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/var/www/sova_move/newvenv/venv/lib/python3.4/site-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 django

我的连接很好(我通常可以升级我的系统,ping谷歌...)和https://pypi.python.org/simple/Django/确定存在(我现在可以看到)。此外 - 我可以使用点子列表,点子搜索,当我使用wget手动下载包时,然后使用

python setup.py install

它工作正常,它甚至可以下载依赖项。我没有使用代理。这是在使用archlinux的raspbery pi上完成的。我的联系是静态的。 Python工作正常,并且还安装了pip(默认情况下为3.4)。

由于

1 个答案:

答案 0 :(得分:0)

我使用本地版本的python重新安装了我的virtualenv而没有使用符号链接,现在可以使用了。谢谢