【问题标题】:error while installing graphlab in ubuntu在 ubuntu 中安装 graphlab 时出错
【发布时间】:2017-06-04 08:38:04
【问题描述】:

在 ubuntu 14.04 中安装 graphlab 时出现以下错误。我已经花了很多时间通过谷歌搜索来解决这个问题。谁能帮我解决这个问题。

错误:

ramy@ramy-Aspire-4739Z:~$ sudo pip install --upgrade https://get.graphlab.com/GraphLab-Create/2.1/mohangtrichy@gmail.com/<KEY>/GraphLab-Create-License.tar.gz
Downloading/unpacking https://get.graphlab.com/GraphLab-Create/2.1/mohangtrichy@gmail.com/<KEY>/GraphLab-Create-License.tar.gz
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/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/python2.7/dist-packages/pip/req.py", line 1198, in prepare_files
    do_download,
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1376, in unpack_url
    self.session,
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 546, in unpack_http_url
    resp = session.get(target_url, stream=True)
  File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 467, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 237, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 455, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 558, in send
    r = adapter.send(request, **kwargs)
  File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/adapters.py", line 385, in send
    raise SSLError(e)
SSLError: [Errno 1] _ssl.c:510: error:14077438:SSL    routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error

Storing debug log for failure in /home/ramy/.pip/pip.log
ramy@ramy-Aspire-4739Z:~$ 

【问题讨论】:

    标签: python ubuntu machine-learning pip graphlab


    【解决方案1】:

    请求可以验证 HTTPS 请求的 SSL 证书,就像 网页浏览器。要检查主机的 SSL 证书,您可以使用 verify 论据:

    如果你想避免SSLError,你可以找到requests部分并将验证更改为False:

    requests.get('https://google.com', verify=False)
    

    另一种方式重装certifi模块:

    sudo pip uninstall -y certifi
    sudo pip install certifi==2015.04.28
    

    看看这些问题:

    Python Requests throwing up SSLError

    SSLError: bad handshake, Python requests

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-29
      • 1970-01-01
      • 2016-12-26
      • 2014-05-23
      • 2016-11-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多