Raspberry pi - get-pip.py错误

时间:2015-10-21 07:28:49

标签: python opencv debian pip raspberry-pi2

我正在研究带有piface的Raspberry pi 2。我正在尝试按照以下步骤安装openCV:click here。当我尝试执行第6步(安装pip)时,出现以下错误:

android.support.v4

我尝试了第7步,但收到了几乎相同的消息(安装virtualenv):

pi@raspberrypi ~ $ sudo python get-pip.py

        Exception:
        Traceback (most recent call last):
          File "/tmp/tmpxtbKBh/pip.zip/pip/basecommand.py", line 211, in main
            status = self.run(options, args)
          File "/tmp/tmpxtbKBh/pip.zip/pip/commands/install.py", line 305, in run
            wb.build(autobuilding=True)
          File "/tmp/tmpxtbKBh/pip.zip/pip/wheel.py", line 705, in build
            self.requirement_set.prepare_files(self.finder)
          File "/tmp/tmpxtbKBh/pip.zip/pip/req/req_set.py", line 334, in prepare_files
            functools.partial(self._prepare_file, finder))
          File "/tmp/tmpxtbKBh/pip.zip/pip/req/req_set.py", line 321, in _walk_req_to_install
            more_reqs = handler(req_to_install)
          File "/tmp/tmpxtbKBh/pip.zip/pip/req/req_set.py", line 409, in _prepare_file
            req_to_install, finder)
          File "/tmp/tmpxtbKBh/pip.zip/pip/req/req_set.py", line 365, in _check_skip_installed
            finder.find_requirement(req_to_install, self.upgrade)
          File "/tmp/tmpxtbKBh/pip.zip/pip/index.py", line 486, in find_requirement
            all_versions = self._find_all_versions(req.name)
          File "/tmp/tmpxtbKBh/pip.zip/pip/index.py", line 404, in _find_all_versions
            index_locations = self._get_index_urls_locations(project_name)
          File "/tmp/tmpxtbKBh/pip.zip/pip/index.py", line 378, in _get_index_urls_locations
            page = self._get_page(main_index_url)
          File "/tmp/tmpxtbKBh/pip.zip/pip/index.py", line 818, in _get_page
            return HTMLPage.get_page(link, session=self.session)
          File "/tmp/tmpxtbKBh/pip.zip/pip/index.py", line 928, in get_page
            "Cache-Control": "max-age=600",
          File "/tmp/tmpxtbKBh/pip.zip/pip/_vendor/requests/sessions.py", line 477, in get
            return self.request('GET', url, **kwargs)
          File "/tmp/tmpxtbKBh/pip.zip/pip/download.py", line 373, in request
            return super(PipSession, self).request(method, url, *args, **kwargs)
          File "/tmp/tmpxtbKBh/pip.zip/pip/_vendor/requests/sessions.py", line 465, in request
            resp = self.send(prep, **send_kwargs)
          File "/tmp/tmpxtbKBh/pip.zip/pip/_vendor/requests/sessions.py", line 573, in send
            r = adapter.send(request, **kwargs)
          File "/tmp/tmpxtbKBh/pip.zip/pip/_vendor/cachecontrol/adapter.py", line 46, in send
            resp = super(CacheControlAdapter, self).send(request, **kw)
          File "/tmp/tmpxtbKBh/pip.zip/pip/_vendor/requests/adapters.py", line 370, in send
            timeout=timeout
          File "/tmp/tmpxtbKBh/pip.zip/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
            body=body, headers=headers)
          File "/tmp/tmpxtbKBh/pip.zip/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 344, in _make_request
        self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
      File "/tmp/tmpxtbKBh/pip.zip/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 314, in _raise_timeout
        if 'timed out' in str(err) or 'did not complete (read)' in str(err):  # Python 2.6
    TypeError: __str__ returned non-string (type Error)

我试图解决这个问题2天,所以如果有人可以帮助我......

如果您需要更多信息,请不要犹豫。我还需要为我的英语道歉,我是瑞士学生...

0 个答案:

没有答案