【python】win10配置pycharm 关于Error processing line 7 of D:\softwares\Anaconda3\lib\site-packages\pywin32.pth 问题的解决

如题,win10环境配置pycharm 报错: Error processing line 7 of D:\softwares\Anaconda3\lib\site-packages\pywin32.pth
全部异常如下:

Error processing line 7 of D:\Python-x\lib\site-packages\pywin32.pth:
 
  Traceback (most recent call last):
    File "D:\Python-x\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named 'pywin32_bootstrap'

解决: pywin32组件版本不兼容,需重新pip安装指定版本pywin32,具体如下:
pip install pywin32==225

参考:

posted @ 2021-03-01 16:07  Joshua王子  阅读(2636)  评论(0编辑  收藏  举报