這篇文章給大家分享的是有關(guān)解決安裝anaconda后不能使用pip的方法的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考。一起跟隨小編過來看看吧。
安裝anaconda后不能使用pip的解決方法:打開anaconda prompt,在anaconda prompt中使用pip命令即可,例如:【pip install requests】。
問題描述:
在windows系統(tǒng)下通過安裝Anaconda的方式安裝的python使用中發(fā)現(xiàn)不能通過pip安裝python包,只能通過conda install packname 的方法,導(dǎo)致很多conda不支持的包無法安裝。
解決方法:
打開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)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識。如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!