当前位置:   article > 正文

如果pip出现换了源都不行的操作,那么你可以试试这种方法_warning: the repository located at pypi.tuna.tsing

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

我遇到过的两个错误

第一个:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:732: The handshake operation timed out',))': /simple/%20--trusted-host%20pypi.douban.com/pyqt5-tools/

 第二个:

 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 it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host pypi.tuna.tsinghua.edu.cn'.
  Could not find a version that satisfies the requirement pyqt5 (from versions: )
No matching distribution found for pyqt5

 

只需要以下这条命令,轻松解决

pip install package -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

注意需要讲package换成你需要的包

这时候安装就成功了

 具体为什么这样子就成功了我目前也不知道,有大佬看到可以解释一下

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

闽ICP备14008679号