search

Home  >  Q&A  >  body text

git - 树莓派pip安装python包错误

pi@cohoserver /usr/lib/python2.7/dist-packages $ sudo pip install --upgrade numpy
**Cannot fetch index base URL https://pypi.python.org/simple/**
Could not find any downloads that satisfy the requirement numpy in /usr/lib/pymodules/python2.7
Downloading/unpacking numpy
Cleaning up...
No distributions at all found for numpy in /usr/lib/pymodules/python2.7
Storing debug log for failure in /root/.pip/pip.log

pi@cohoserver ~ $ sudo git clone https://github.com/ziahamza/webui-aria2.git
Cloning into 'webui-aria2'...
**error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/ziahamza/webui-aria2.git/info/refs
fatal: HTTP request failed**

Git Clone 也遇到这样的问题。

终于解决掉问题了,原来是树莓派的时间设置问题,现在一切完美了。
所有的SSL问题都搞定。

世界只因有你世界只因有你2780 days ago1165

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-24 16:02:10

    I currently cannot access https://pypi.python.org/simple even if I bypass the firewall. It is recommended to use the source of douban(http://pypi.douban.com/simple) or v2ex(http://pypi.v2ex.com/simple) instead. Add the following content to ~/.pip/pip.conf

    [global]
    index-url=http://pypi.douban.com/simple
    

    reply
    0
  • Cancelreply