No module named 'win32api' // PY2EXE

后端 未结 2 1963
Happy的楠姐
Happy的楠姐 2021-01-28 01:54

I am using Python 3.6.7 in conda 4.5.12 (Win10,64bit) and I want to compile my Python project to an .exe-File using Pyinstaller (3.5 dev). I keep getting the same error:

2条回答
  •  一整个雨季
    2021-01-28 02:25

    Sometimes it happened to me on Windows that installed package is not visible. Try first uninstalling it:

    pip uninstall pypiwin32
    

    Make sure it has been removed:

    pip list
    

    Then install from scratch:

    pip install --no-cache pypiwin32
    

    Make sure it is installed:

    pip list
    

    You might see pywin32 in the list.

提交回复
热议问题