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.

  1. close python command line or idle gui.

  2. go python34 installation folder, should on c:\python34.

  3. once there open "lib" folder , locate "site-packages" folder

  4. now need delete colorama egg file, file contains module called colorama-0.3.3.egg or similar, need install uncompressed.

  5. 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

  1. 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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -