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. mysql - AttributeError: ’module’ object has no attribute ’MatchType’2. php自學從哪里開始?3. javascript - 百度echarts series數據更新問題4. MySQL客戶端吃掉了SQL注解?5. 求大神幫我看看是哪里寫錯了 感謝細心解答6. javascript - JS設置Video視頻對象的currentTime時出現了問題,IE,Edge,火狐,都可以設置,反而chrom卻...7. javascript - 圖片能在網站顯示,但控制臺仍舊報錯403 (Forbidden)8. python小白的基礎問題 關于while循環的嵌套9. phpstady在win10上運行10. python - Django分頁和查詢參數的問題
