ERROR: No matching distribution found for selenium

  • 2019 年 10 月 10 日
  • 筆記

版權聲明:本文為部落客原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接和本聲明。

本文鏈接:https://blog.csdn.net/weixin_40313634/article/details/96181387

問題: 安裝 selenium 報錯

  • 環境: python 3.7.3(python –version)
  • 操作: pip install selenium
  • 報錯:
 ERROR: Could not find a version that satisfies the requirement selenium (from versions: none)  ERROR: No matching distribution found for selenium

解決:

  • 方法1:增大超時時間
pip --default-timeout=100 install selenium
  • 方法2:修改安裝源為清華安裝源
pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/  selenium

我的部落格即將同步至騰訊雲+社區,邀請大家一同入駐: https://cloud.tencent.com/developer/support-plan?invite_code=3gyyrlkysnc4k