ERROR: No matching distribution found for redirect pip3安裝問題


本來就是用pip3命令     ,pip3 install 包名

但是報錯  No matching distribution found for...........

 

此時有點懵逼,從來沒出現過這個問題,遂嘗試用apt-get安裝:

sudo apt-get install python-sklearn

結果也報錯,試着apt-get升級一下,我又執行 sudo apt-get update,結果還是不行。

后來查資料,試了試修改了DNS,就改好了,pip install xxx,apt-get update 統統ok

 

修改方法:

1. 打開’/etc/network/interfaces’文件,沒有則創建一個,添加

dns-nameservers  223.5.5.5   223.6.6.6

2. 打開’/etc/resolv.conf’文件並添加兩行’

nameserver  223..5.5.5 
nameserver  223.6.6.6


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM