1. 程式人生 > >Could not find a version that satisfies the requirement pymysql3 (from versions: ) No matching dist

Could not find a version that satisfies the requirement pymysql3 (from versions: ) No matching dist

轉載於https://blog.csdn.net/csdn_am/article/details/79924744

有時我們使用下載python 自帶的pip 安裝一些工具包時,會報如下錯誤
在這裡插入圖片描述

找不到滿意的版本,這時就是我們的pip可能需要升級了,所以使用

python -m pip install --upgrade pip

升級一下pip ,–upgrade 後面跟的是需要升級的庫名

然後繼續嘗試發現還是不行,會報相同的錯誤,這時考慮到是網路的問題,我的網有時候是不穩定的,這時我們用國內的映象源來加速

pip install 包名-i http://pypi.douban.com/simple/

--trusted-host pypi.douban.com

–trusted-host pypi.douban.com 這是為了獲得ssl證書的認證

在這裡插入圖片描述

執行成功!