robotframwork安装excellibrary总结
1.此时需根据报错的版本路径进行离线下载,zip包下载完成后解压至对应的python路径包D:\python\Lib\site-packages:
#execfile(join(dirname(file), ‘ExcelLibrary’, ‘version.py’))
#from ExcelLibrary import ExcelLibrary
from .ExcelLibrary import ExcelLibrary
4.重新开启ride,导入ExcelLibrary,导入标红显示有部分模块缺少,根据提示安装相应模块即可
1)在Tools—View RIDE Log查看问题显示:Importing library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'natsort'
使用pip install natsort,进行natsort模块的下载和安装;
2)在Tools—View RIDE Log查看问题显示:Importing library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'xlrd'
使用pip install xlrd,进行xlrd模块的下载和安装;
3)在Tools—View RIDE Log查看问题显示:Importing library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'xlwt'
使用pip install xlwt,进行xlwt模块的下载和安装;
4)在Tools—View RIDE Log查看问题显示:Importing library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'xlutils'
使用pip install xlutils,进行xlutils模块的下载和安装;
5、重新开启ride,导入ExcelLibrary成功