当前位置: 代码迷 >> 综合 >> 使用pycharm安装selenium,通过国内的镜像源安装python包,需要添加信任选项 --trusted-host mirrors.aliyun.com
  详细解决方案

使用pycharm安装selenium,通过国内的镜像源安装python包,需要添加信任选项 --trusted-host mirrors.aliyun.com

热度:31   发布时间:2024-02-23 15:26:59.0

今天在试着搞ui自动化,pycharm导入selenium的时候报错:

The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.

原因是未信任阿里云镜像,忽略之后装不上,像下面这样:

在install packags这里勾选options,把报错提示的内容加进去就ok了。
 

 

  相关解决方案