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
相关文章:
1. 老师我想请问下面这段代码中的map._map是什么意思?为什么要这么写。2. javascript - 求教:如何从页面1链接到页面2时,使页面2原本隐藏的div显示?3. react.js - 【react native】运行 react-native run-android 报错4. angular.js - 使用angularjs,为什么报controller没定义?5. javascript - 如何向放到网页上的swf播放器里放视频地址?6. node.js - nodejs模块jpegicc怎么安装?7. mysql - PHP 批量插入的时候 判断数据表里面是否重复怎么优化8. nginx配置问题9. javascript - 函数返回值要经过内部方法的回调函数处理,该怎么写?10. 为啥总显示密码错误

网公网安备