Python3.7读取Excel表格之pip安装资源问题HTTPSConnectionPool(host='files.pythonhosted.org', port=443)

       当我们要使用Python操纵Excel表格的时候我们需要准备许多的包,下面是操纵Excel表格用到的包:

1.openpyxl 主要用于读写xlsx格式

2.xlrd

3.future

4.xlwt-future

5.pyexcel-io

6.ordereddict

7.pyexcel

8.pyexcel-xls

平常我们都是通过pip的方式来获取项目所需要的包,今天我在写项目操纵Excel表格的时候,也是像往常一下导入所需要的包,以下是导入包的命令:

pip install openpyxl
但是出现了以下问题:

出现这一问题的原因是pip默认的资源下载路径出现了问题,需要换源下载,我所切换的资源是清华大学提供的下载资源,网址为

https://mirrors.ustc.edu.cn/pypi/web/simple/ 具体命令为:
pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ openpyxl

pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ xlrd

pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ future

pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ xlwt-future

pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ pyexcel-io

pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ ordereddict

pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ pyexcel

pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ pyexcel-xls
这样问题就可以解决了。

 

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值