git - 樹(shù)莓派pip安裝python包錯(cuò)誤
問(wèn)題描述
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 也遇到這樣的問(wèn)題。
終于解決掉問(wèn)題了,原來(lái)是樹(shù)莓派的時(shí)間設(shè)置問(wèn)題,現(xiàn)在一切完美了。所有的SSL問(wèn)題都搞定。
問(wèn)題解答
回答1:我這里目前沒(méi)法訪問(wèn) https://pypi.python.org/simple 即使翻墻。建議改用 douban(http://pypi.douban.com/simple) 或 v2ex(http://pypi.v2ex.com/simple) 的源。將下面內(nèi)容加到 ~/.pip/pip.conf 中
[global]index-url=http://pypi.douban.com/simple
相關(guān)文章:
1. angular.js - 百度支持_escaped_fragment_嗎?2. python小白,關(guān)于函數(shù)問(wèn)題3. mysql - 如何在有自增id的情況下,讓其他某些字段能不重復(fù)插入4. 求救一下,用新版的phpstudy,數(shù)據(jù)庫(kù)過(guò)段時(shí)間會(huì)消失是什么情況?5. django - Python error: [Errno 99] Cannot assign requested address6. javascript - webpack1和webpack2有什么區(qū)別?7. Python2中code.co_kwonlyargcount的等效寫(xiě)法8. node.js - win 下 npm install 遇到了如下錯(cuò)誤 會(huì)導(dǎo)致 無(wú)法 run dev么?9. python小白 關(guān)于類(lèi)里面的方法獲取變量失敗的問(wèn)題10. [python2]local variable referenced before assignment問(wèn)題
