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.7Downloading/unpacking numpyCleaning up...No distributions at all found for numpy in /usr/lib/pymodules/python2.7Storing debug log for failure in /root/.pip/pip.logpi@cohoserver ~ $ sudo git clone https://github.com/ziahamza/webui-aria2.gitCloning 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/refsfatal: HTTP request failed**Git Clone 也遇到这样的问题。
终于解决掉问题了,原来是树莓派的时间设置问题,现在一切完美了。所有的SSL问题都搞定。
问题解答
回答1:我这里目前没法访问 https://pypi.python.org/simple 即使翻墙。建议改用 douban(http://pypi.douban.com/simple) 或 v2ex(http://pypi.v2ex.com/simple) 的源。将下面内容加到 ~/.pip/pip.conf 中
[global]index-url=http://pypi.douban.com/simple
相关文章: