当前位置: 首页 > article >正文

尝试从 http://pypi.doubanio.com/simple 这个索引源安装 webdriver 时出现了问题

问题如下: 

WARNING: The repository located at pypi.doubanio.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 pypi.doubanio.com'. ERROR: Could not find a version that satisfies the requirement webdriver (from versions: none) ERROR: No matching distribution found for webdriver WARNING: The repository located at pypi.doubanio.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 pypi.doubanio.com'. 

问题分析:

pypi.doubanio.com 被警告不是一个受信任或安全的主机,可能存在安全风险,并且这个源上找不到满足 webdriver 需求的版本


解决办法:将pip 配置指向官方源,使用官方的 Python 包索引源 https://pypi.org/simple

1、打开命令行界面

2、检查当前的 pip 源配置

   pip config list

3、如果发现当前源是 pypi.doubanio.com,切换到官方源 

   pip config set global.index-url https://pypi.org/simple

4、安装所需要的包:

pip install 包名 


http://www.kler.cn/news/335487.html

相关文章:

  • 从零开始手写STL库:Stack
  • 电脑手机下载小米xiaomi redmi刷机包太慢 解决办法
  • 【C++11】新特性
  • 【区别】三种命令取消已暂存的文件,处理暂存区和文件的跟踪状态
  • 防止错误输入!Excel单元格限制输入内容的三种有效方式
  • centos7编译安装openresty+lua-resty-http+lua-resty-openssl-master
  • mycat读写分离中间件
  • JavaScript 根据时间先后排序数组
  • CSS基础-常见属性(二)
  • 32单片机 低功耗模式
  • C++项目工程代码自动检查
  • 使用 Python 遍历文件夹
  • 大数据处理从零开始————4.认识HDFS分布式文件系统
  • Leetcode - 周赛417
  • SpringBoot3+Druid YAML配置
  • Qt开发技巧(十五)字符串去除空格,跨网段搜索不生效,设置图片显示失败问题,表格视图的批量删除,主动判断字串编码,开启向前查询的属性,画家类载入html来绘制
  • 简单的找交集差集算法
  • Ubuntu 安装 Docker Compose
  • 基于java+springboot的酒店预定网站、酒店客房管理系统
  • HarmonyOS 组件