numpy报错

报错信息:

RuntimeError: The current Numpy installation ('C:\\soft\\Python\\Python38\\lib\\site-packages\\numpy\\__init__.py') 
fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86

详细信息:

 

进行降级操作:

C:\>pip list | findstr "numpy"

C:\>pip uninstall numpy
Found existing installation: numpy 1.19.4
Uninstalling numpy-1.19.4:
  Would remove:
    c:\soft\python\python38\lib\site-packages\numpy-1.19.4.dist-info\*
    c:\soft\python\python38\lib\site-packages\numpy\*
    c:\soft\python\python38\scripts\f2py.exe
Proceed (y/n)? y
  Successfully uninstalled numpy-1.19.4


C:\>pip install numpy==1.19.3 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com/pypi

报错信息:

xlrd.biffh.XLRDError: Excel xlsx file; not supported

C:\>pip install xlrd
Collecting xlrd
  Downloading xlrd-2.0.1-py2.py3-none-any.whl (96 kB)
     |████████████████████████████████| 96 kB 288 kB/s
Installing collected packages: xlrd
Successfully installed xlrd-2.0.1

由于默认安装的新版本不支持xlsx格式
需要使用降级的版本或者

XlsxWriter 或者使用 openpyxl

C:\>pip install xlrd==1.2.0
大于此版本的不支持xlsx

Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 onwards) on any platform. Pure Python (2.7, 3.4+).
 Strong support for Excel dates. Unicode-aware.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值