pwjcw 2021-02-10 22:12 采纳率: 66.7%
浏览 1093
已结题

python进行pip安装是弹出黄色警告怎么办?

WARNING: 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'

译文就是:警告:存储库位于镜像阿里云不是受信任或安全的主机,将被忽略。如果此存储库通过HTTPS可用,我们建议您改用HTTPS,否则您可能会禁用此警告,并允许使用'--trusted host镜像阿里云'.

在查看已安装模块时显示已经安装上模块,然而在pycharm里面运行时仍显示未找到模块,怎么办啊?

  • 写回答

3条回答 默认 最新

  • 给你骨质唱疏松 2021-02-11 09:57
    关注

    可以更换一下镜像, `pip install some_package --index https://pypi.mirrors.ustc.edu.cn/simple/`  清华源

    中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
    豆瓣(douban) http://pypi.douban.com/simple/

    中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 9月11日
  • 已采纳回答 9月3日