python - How do I allow cxfreeze to import colorama? -
i'm incredibly new, , wondering if package colorama cx_freeze, i've seen people similar question yet not understand how choose colorama. please, explain i'm 10 years old. coding in setup.py file cx_freeze:
from cx_freeze import setup, executable`` setup(name = "popcarventure" , version = "0.1" , description = "" , executables = [executable("theadventure.py")])
can please post how import colorama? appreciated! note: using python 3.4 on windows, not python 2.
i started in python , came across same problem, aparently latest version of cxfreeze has difficulties include compressed modules (.egg, similar .zip files).
so i'm going try explain in easiest way can, how managed working.
i assume installed python in c:\python34
.
close python command line or idle gui.
go python34 installation folder, should on
c:\python34
.once there open "lib" folder , locate "site-packages" folder
now need delete colorama egg file, file contains module called
colorama-0.3.3.egg
or similar, need install uncompressed.create .cfg file instruction uncompress these egg files during installation, go
c:\python34\lib\distutils
create new notepad file , name it: distutils.cfg , paste this:[easy_install]
zip_ok = 0
save , continue last step
open windows command prompt, write:
cd c:\python34\scripts
now write:
pip install colorama
once finishes can start creating executables colorama on it
note: on egg module install pip or easy_install or python install commands, uncompressed, cx_freeze work.
Comments
Post a Comment