首页 > 其他分享 >pip install xlrd时报错

pip install xlrd时报错

时间:2023-05-16 19:12:50浏览次数:38  
标签:时报 host install aliyun pip xlrd

pip install xlrd时报错

ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/a6/0c/c2a72d51fe56e08a08acc85d13013558a2d793028ae7385448a6ccdfae64/xlrd-2.0.1-py2.py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000017B9A673580>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

 

查看网上原因分析:

是因为在找第三方库时链接超时,总是获取不到。自带的pip命令去国外的服务器请求第三方包了,所以超时,因而换成国内镜像下载即可

 

尝试豆瓣源 这里应该是没有信任主站,所以还是失败

 

 

后面用阿里源的解决方案,并且信任主站

最后安装成功

pip install xlrd -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

 

标签:时报,host,install,aliyun,pip,xlrd
From: https://www.cnblogs.com/qiuqiu516/p/17406539.html

相关文章

  • pytorch的安装—pip
    之前我有写过使用anaconda安装pytorch的文章,但是当时出现了无法解决的问题,安装的pytorch不管如何,都是下载的cpu版本的,于是我重复很多次,检查了cuda版本,cudaa版本,都是一一对应的,但是用conda下载就是不行,直到我看到了这样一篇文章:安装GPU版本的pytorch(解决pytorch安装时默认安装CPU......
  • 在内陆指定国内pip安装源安装python第三方库
    Python官方网站提供了第三方库索引网站(PyPI:thePythonPackageIndex)https://pypi.org,内陆需要代理才能访问。在内陆指定国内pip安装源安装python第三方库,在Windows的CMD窗口运行:pipinstalldocx-ihttps://mirrors.aliyun.com/pypi/simple/pipinstallopenpyxl-ihttps://m......
  • 如何在 conda 环境中使用 pip 进行安装?
    有时候Conda中没有某个模块,但是pip中有,这时候就需要用到这里的技巧了。在conda环境中使用pip进行安装可以通过以下步骤完成:1、激活你的conda环境打开终端(命令提示符)并输入以下命令:condaactivate<环境名称>将<环境名称>替换为你要激活的conda环境的名称。2、......
  • bash: pip: command not found...
     001、[root@PC1test]#pipbash:pip:commandnotfound...  002、[root@PC1test]#cat/etc/redhat-release 003、[root@PC1software]#curlhttps://bootstrap.pypa.io/pip/2.7/get-pip.py-oget-pip.py[root@PC1software]#pythonget-pip.py ......
  • WSL Install
    PrepareRequirement:OS:Ubuntu22.04Python3 PrepareStepssudoaptupdatesudoapt-yupgradesudoapt-getinstalldcmesa-utilsgeditpulseaudiolibquadmath0libgtk2.0-0firefoxlibgomp1Download fslinstaller.pyLoginLinuxwithpersonaluser(not......
  • unbuntu 火狐安装flash插件 Install Adobe Flash Player In Ubuntu 13.10,13.04,12.10
    InstallAdobeFlashPlayer PressCtrl+Alt+TforopenTerminalandtrythefollowingcommands;sudoadd-apt-repository"debhttp://archive.canonical.com/$(lsb_release-sc)partner"sudoapt-getupdate&&sudoapt-getinstallflashplugin......
  • Netty实战(06)-ChannelPipeline 接口
    1概述把ChannelPipeline看成拦截流经Channel的入、出站事件的ChannelHandler的实例链,就易看出这些ChannelHandler之间的交互如何组成一个应用程序数据和事件处理逻辑的核心。每个新建的Channel都会被分配一个新的ChannelPipeline。这项关联是永久性的;Channel既不能附加另外......
  • 常见问题解决 --- pip报错【WARNING: Retrying (Retry(total=4, connect=None, read=N
    问题现象【WARNING:Retrying(Retry(total=4,connect=None,read=None,redirect=None,st】解决方法:出现该错误信息是因为pip源连接证书验证失败,增加参数 --trusted-host例如pipinstallmatplotlib-ihttp://mirrors.aliyun.com/pypi/simple--trusted-hostmirrors.al......
  • ERROR:Could not build wheels for pycocotools, which is required to install pypro
    在创建了conda虚拟环境后,下载pycocotools包,出现这个错误,终端下载包失败,从网上直接将下载好的pycocotools包导入到,所需要环境(conda环境,本机环境)比如:anaconda\envs\py38\Lib\site-packages下面pycocotools包下载:链接:https://pan.baidu.com/s/1RsV1w0GRXJZ1rR3yPBg5FA提取码:88......
  • RuntimeError: Couldn't install gfpgan
    背景https://cloud.tencent.com/act/pro/gpu-study?from=20318tx云打折活动买来一台有V100(32G大显存)的云服务器,但是安装SD的时候由于网络原因出现各种问题:sd本身没法从github下载下来sd下载下来没法安装,也就是出现RuntimeError:Couldn'tinstallgfpgangfpgan安装后还有......