使用pip安裝.whl文件時出現is not a supported wheel on this platform的解決辦法


今天自己用pip下載basemap模塊的時候出現了is not a supported wheel on this platform的錯誤(whl文件的版本合適)

經百度直到可以通過下述命令查看使用pip下載whl文件時支持的命名規則(支持的版本):

from pip import _internal

print(_internal.pep425tags.get_supported())  # 顯示支持的版本格式

如果版本合適但pip下載失敗出現上述問題,可以在shell中通過上述代碼查看對應規則,並為文件重命名

另:下載時注意路徑安排


免責聲明!

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



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