当前位置:   article > 正文

pip下载时更换源过程中遇到的问题_warning: the repository located at pypi.tuna.tsing

warning: the repository located at pypi.tuna.tsinghua.edu.cn is not a truste

当我想用pip install 一个库时,遇到以下报错:

WARNING: The repository located at pypi.tuna.tsinghua.edu.cn is not a trusted or secure host and is being ignored. If this repositoryis available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host pypi.tuna.tsinghua.edu.cn'.
ERROR: Could not find a version that satisfies the requirement scikit-opt (from versions: none)
ERROR: No matching distribution found for scikit-opt

WARNING: The repository located at pypi.tuna.tsinghua.edu.cn 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.tuna.tsinghua.edu.cn'.

        这个错误提示是由于pip在下载软件包时,发现了一个不受信任的镜像源,因此默认情况下会忽略它。解决方法:找到图中的文件,打开它

编辑:
[global]
timeout = 6000
index-url = http://pypi.tuna.tsinghua.edu.cn/simple/
trusted-host=pypi.tuna.tsinghua.edu.cn

回到cmd,输入:你原本想要下载的内容。

                        
 

解决方法参考:

python学习日记(1)_warning: the repository located at pypi.tuna.tsing-CSDN博客

一键解决WARNING: The repository located at mirrors .aliyun.com is not a trusted or secure host and is be_warning:the repository-CSDN博客

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/煮酒与君饮/article/detail/949779
推荐阅读
相关标签
  

闽ICP备14008679号