报错界面:

找到路径:

import win32com
print(win32com.__gen_path__)

结果:

C:\Users\Erica\AppData\Local\Temp\gen_py\3.7

方法1:

去这个目录删除缓存文件夹00020905-0000-0000-C000-000000000046x0x8x5即可,重新执行上述代码便不再报错。

方法2:

excel = win32.gencache.EnsureDispatch('Excel.Application')
#change to =>
excel = win32.Dispatch('Excel.Application')

解决AttributeError: module ‘win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9‘ has no attribu相关推荐

  1. AttributeError: module ‘win32com.gen_py.00062FFF-0000-0000-C000-000000000046x0x9x6‘ has no attribute

    记录下关于AttributeError: module 'win32com.gen_py.00062FFF-0000-0000-C000-000000000046x0x9x6' has no attr ...

  2. 成功解决 AttributeError: module ‘keras.engine.topology‘ has no attribute ‘load_weights_from_hdf5_group_b

    成功解决 AttributeError: module 'keras.engine.topology' has no attribute 'load_weights_from_hdf5_group_b ...

  3. 成功解决AttributeError: module ‘dask.array.numpy_compat‘ has no attribute ‘take_along_axis‘

    成功解决AttributeError: module 'dask.array.numpy_compat' has no attribute 'take_along_axis' 目录 解决问题 解决思路 ...

  4. 成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘

    成功解决AttributeError: module 'tensorflow' has no attribute 'placeholder' 目录 解决问题 解决思路 解决方法 T1.降低tensor ...

  5. 成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘contrib‘

    成功解决AttributeError: module 'tensorflow' has no attribute 'contrib' 目录 解决问题 解决思路 解决方法 解决方法

  6. 成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘get_variable‘

    成功解决AttributeError: module 'tensorflow' has no attribute 'get_variable' 目录 解决问题 解决思路 解决方法 解决问题 Attri ...

  7. 成功解决AttributeError: module ‘seaborn‘ has no attribute ‘lvplot‘

    成功解决AttributeError: module 'seaborn' has no attribute 'lvplot' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError ...

  8. 成功解决AttributeError: module ‘tornado.web‘ has no attribute ‘asynchronous‘

    成功解决AttributeError: module 'tornado.web' has no attribute 'asynchronous' 目录 解决问题 解决思路 解决方法 解决问题 Attr ...

  9. 成功解决AttributeError: module tensorflow has no attribute placeholder

    成功解决AttributeError: module 'tensorflow' has no attribute 'placeholder' 目录 解决问题 解决思路 解决方法 解决问题 Attrib ...

最新文章

  1. Java 集合 — HashMap
  2. 漫画: 可以给女朋友讲解 Linux 内核长啥样了
  3. Android高效异步图片加载框架
  4. poj3258二分法
  5. pay-spring-boot 开箱即用的Java支付模块,整合支付宝支付、微信支付
  6. 瑞典正成为欧洲硅谷?
  7. 算法优化策略之“中途相遇”算法思想
  8. python中文分词统计_python 实现中文分词统计
  9. table表格字母无法换行
  10. 什么是计算机技术作文500字,关于电脑的作文500字
  11. 如何快速建立一个优秀的账号体系
  12. 为什么打印还要另存为_打印的时候为什么显示文件另存为
  13. C++OpenCV实现抠除(也可用于更换)证件照背景
  14. shell脚本文本替换
  15. bcc云服务器远程,云服务器BCC操作操作手册.pdf
  16. C语言中的static的作用~
  17. 【FFMPEG】各种音视频编解码学习详解 h264 ,mpeg4 ,aac 等所有音视频格式
  18. 在一个项目上跑起来Docker(goland)
  19. 山区地貌图MATLAB
  20. SQL数据查询——嵌套查询

热门文章

  1. 虚拟机网络模式(NAT模式主机访问虚拟机)
  2. 2021.07.17【R语言】丨扩增子课程学习——α多样性简介
  3. 【温故而知新】分布式系统(二)
  4. Android手机有哪学好用的epub阅读器app
  5. Dependence Inversion Principle 依赖倒置原则
  6. 计算变为人们梦寐以求的公用设施
  7. 计算机陕西工业职业技术学院,2019年度陕西省中等职业学校教师省级培训计算机动漫与游戏制作开班典礼在我院举行...
  8. 【项目实战】java实现向日葵远程控制功能
  9. 基于天翼1号2021的5G切片创新应用在广州完成端到端现网验证
  10. 《黑客与画家》——读书笔记