在使用 pip 命令 ( pip install PIL ) 安裝第三方庫 PIL 的時候,報錯:Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL
查了一下,首先是因為 PIL 已經(jīng)被 Pillow 所替代了,但是使用命令?pip install Pillow 仍舊不行,這個時候就需要我們手動去下載第三方庫然后安裝。
首先,去?這個地址?找到需要的庫文件,比如 PIL

點擊即可下載
然后,使用命令 pip install path\文件名? 安裝即可

path是指下載的.whl文件存放的路徑
關(guān)于wheel
wheel是新的Python的disribution,用于替代Python傳統(tǒng)的egg文件。目前有超過一半的庫文件有對應的wheel文件。