這篇文章給大家分享的是有關(guān)解決安裝anaconda后不能使用pip的方法的內(nèi)容。小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧。
安裝anaconda后不能使用pip的解決方法:打開(kāi)anaconda prompt,在anaconda prompt中使用pip命令即可,例如:【pip install requests】。
問(wèn)題描述:
在windows系統(tǒng)下通過(guò)安裝Anaconda的方式安裝的python使用中發(fā)現(xiàn)不能通過(guò)pip安裝python包,只能通過(guò)conda install packname 的方法,導(dǎo)致很多conda不支持的包無(wú)法安裝。
解決方法:
打開(kāi)Anaconde prompt,在該prompt中使用pip而不是命令行或者powershell中使用pip即可。
例如:
在Anaconde prompt 運(yùn)行命令:
pip install requests
Requirement already satisfied: requests in e:\anaconda\lib\site-packages (2.21.0) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in e:\anaconda\lib\site-packages (from requests) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda\lib\site-packages (from requests) (2018.11.29) Requirement already satisfied: idna<2.9,>=2.5 in e:\anaconda\lib\site-packages (from requests) (2.8) Requirement already satisfied: urllib3<1.25,>=1.21.1 in e:\anaconda\lib\site-packages (from requests) (1.24.1)
感謝各位的閱讀!關(guān)于解決安裝anaconda后不能使用pip的方法就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!
分享題目:解決安裝anaconda后不能使用pip的方法-創(chuàng)新互聯(lián)
當(dāng)前路徑:http://www.chinadenli.net/article20/pssjo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供ChatGPT、小程序開(kāi)發(fā)、全網(wǎng)營(yíng)銷推廣、建站公司、手機(jī)網(wǎng)站建設(shè)、軟件開(kāi)發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容