ImportError: no module named py2exe

前端 未结 6 440
旧巷少年郎
旧巷少年郎 2020-12-18 23:41

I get this error when I try to use one of the py2exe samples with py2exe.

File \"setup.py\", line 22, in ?
   import py2exe
ImportError: no module named py2e         


        
6条回答
  •  有刺的猬
    2020-12-19 00:22

    I had the exact same issue and I just managed to get it solved - so I thought I would share my solution.

    It turned out that my installation of CollabNet SVN contained an old version of Python that interfered with my recent Python2.7 installation.

    Replacing CollabNet SVN with VisualSVN (including a couple of reboots) did the trick. I know this is not a "pretty" solution, as it caused me to uninstall CollabNet SVN - a prettier solution might have been doing modifications to the PATH env. variable... However, I am now able to use py2exe :)

提交回复
热议问题