ImportError: Install xlrd >= 0.9.0 for Excel support. Current version 0.8.0-Cannot uninstall 'xlrd'.

原来电脑已经有个 0.8.0的xlrd,这时候要安装0.9.0以上的,

直接pip install xlrd,默认安装最新版,

这时候提示

Cannot uninstall 'xlrd'. It is a distutils installed project and thus we cannotaccurately determine which files belong to it which would lead to only a partial uninstall.

这时候

在python路径下搜索 xlrd ,正常在 Python27\Lib\site-packages 路径下,把 两个相关文件 xlrd(文件夹)和xlrd-0.8.0-py2.7.egg-info(文件)删除或者拷贝出来,

这时候再执行  pip install xlrd就可以了。

猜你喜欢

转载自blog.csdn.net/ksx_120999/article/details/82752019