Generate .pyc files in Python 2.6

0

I want to generate the compiled .pyc from .py scripts in Python 2.6.6. The following line works in Python 2.7:

python -m compileall C:\una_ruta\myscript.py

If I do the same in Python 2.6.6 (even passing the complete routes):

C:\Python26\python -m compileall C:\una_ruta\myscript.py

I get the following error:

  

Listing myscript.py ...

     

Can not list myscript.py

I'm using Windows 7 SP1 x64.

    
asked by Broken_Window 28.02.2018 в 15:02
source

1 answer

0

In python 2.6 for Windows what works is this:

C:\Python26\python -m py_compile C:\una_ruta\myscript.py
    
answered by 05.03.2018 / 18:01
source