Why am I getting a “no module named cx_Freeze” error after installing cx_freeze?

后端 未结 2 658
时光取名叫无心
时光取名叫无心 2020-12-16 17:39

I am trying to compile a python program and I am using python 3.2. So I downloaded cx_freeze and installed it. When I try to run the setup.py

2条回答
  •  天命终不由人
    2020-12-16 18:07

    I experienced the same issue with python version 3.8.

    I found when updating cx_freeze using a compiler, it converted to a pip install, and somehow removed the site-packages path from the %PATH% environment variable for the anaconda environment I was operating in.

    From marcelotduarte at github,

    If you have a C compiler, you can test the development version: pip install -U git+https://github.com/marcelotduarte/cx_Freeze.git@develop

    I uninstalled the module using pip uninstall cx_freeze, and then reinstalled using anaconda, conda install cx_freeze. This corrected the problem and aligned the path variables properly.

提交回复
热议问题