使用命令:pip install chardet

错误提示:WARNING: The repository located at pypi.douban.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.douban.com'.
ERROR: Could not find a version that satisfies the requirement chardet (from versions: none)
ERROR: No matching distribution found for chardet
WARNING: The repository located at pypi.douban.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.douban.com'.
WARNING: There was an error checking the latest version of pip.

解决办法:进去C盘的pip目录:C:\Users\23533\AppData\Roaming\pip

如果有些文件夹没找到,可以把选中隐藏的项目和文件扩展名打开,如果pip文件夹下有pip.ini的配置文件的话可以直接打开然后输入以下:

[global]
timeout = 60
index-url = https://pypi.douban.com/simple/
trusted-host = https://pypi.douban.com

如果没有该配置文件,可以自己创建一个,文件扩展名的后缀一定要为.ini。

Python 安装包环境小问题:WARNING: The repository located at pypi.douban.com is not a trusted or secure host a相关推荐

  1. 已解决(pip报错)WARNING: The repository located at mirrors .aliyun.com is not a trusted or secure host and

    成功解决:WARNING: The repository located at mirrors .aliyun.com is not a trusted or secure host and is b ...

  2. pip安装包时报错:The repository located at pypi.doubanio.com is not a trusted or secure host

    下载时报错:The repository located at pypi.doubanio.com is not a trusted or secure host 检查镜像源,镜像源很多都是http的 ...

  3. WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being i

    解决办法 更换下载源 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

  4. 国内镜像源使用时出现WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and

    解决办法:pip install ××× -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com PS; ...

  5. python 安装包时添加国内源

    python 安装包时添加国内源 清华源 -i https://pypi.tuna.tsinghua.edu.cn/simple/

  6. python安装包_迈出Python学习第一步:Python开发环境的下载与安装

    所谓"磨刀不误砍柴工"."工欲善其事,必先利其器",都在告诉我们一个道理:要做好一个事情,事先做好充分的准备工作是非常重要的.所以在我们正式学习用Python编 ...

  7. python安装包_Python开发环境搭建

    本文是基于最新的版本python3的,俗话说:工欲善其事必先利其器.做自动化测试的第一步必须会搭建基本的自动化测试环境,掌握python基本的语法和一个IDE工具来进行开发,下边会详细介绍怎么搭建py ...

  8. python安装包时出现的一些问题及解决方法

    (一)python安装包时出现四次:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=N ...

  9. python安装包_在python官网打不开的情况下获取获取官方最新安装包

    不知道有没有朋友在下载python最新安装包的时候,打不开python官网,我是遇见过,就像我们找东西时一样,需要的时候网站打不开,不需要了秒开,后来小编查阅各种资料,咨询了好几个大佬,终于得知了一个 ...

最新文章

  1. UI设计培训分享:学习UI设计有哪些技巧
  2. python可视化脉搏和血氧数据并通过阈值动态调整、动态可视化异常值
  3. android 5.1 raw,升级安卓5.1 三星S6/S6 edge将支持RAW
  4. ajax(检测用户名,添加数据)
  5. Android TimeAnimator
  6. [js] 使用for-in语句能保证遍历对象的顺序吗?如果不能那为什么?如果可以那又如何保证?
  7. IDEA快捷键大全及修改IDEA快捷键
  8. 网络操作系统和分布式系统区别简介
  9. java拆弹_[逆向工程] 二进制拆弹Binary Bombs 快乐拆弹 详解
  10. 莫队算法+带修莫队+回滚莫队
  11. 学画画软件app推荐_可以学画画的APP有哪些?
  12. 自然语言14_Stemming words with NLTK
  13. 最新版 IDEA 2022.1 正式上线 各种新操作...新功能...都在这里啦
  14. EChat(简易聊天项目)四、模拟强制下线
  15. python安装成功截图_上传Anaconda 3 安装好后在电脑开始里面的截图。
  16. 品Spring:详细解说bean后处理器
  17. 【架构】生成全局唯一ID的3个思路,来自一个资深架构师的总结
  18. windows 7 x64 下的 System Call
  19. MATLAB调用Kakadu中的可执行文件,实现JPEG2000压缩
  20. java解析读取.rtf格式文档

热门文章

  1. 文本识别综述 <软件学报_王建新等、中国图象图形学报_刘崇宇等>
  2. 德云一哥岳云鹏,准备录制河南和东方卫视节目,央视春晚还参加吗
  3. win 10 计算机找不到,怎么找到win10的计算器?不见了,怎么处理
  4. 上位机使用C++通过ADS协议与倍福PLC通信例程-布尔变量的读取
  5. 仙剑奇侠传编年史(转自网络)
  6. 算法实践:数独的基本解法
  7. 三行代码可视化神经网络特征图
  8. 微信小程序--游戏demo
  9. python求反余弦_余弦相似度计算公式:python代码找出相似文章
  10. 三炮的三舅走了,才发觉日子真的不经念叨呀!