Skip to content Skip to sidebar Skip to footer

Python Does Not Detect .pyc Files

I am using Python 3.2 (both for building and executing), and here is my question. I intend to ship my python application with the following setup: There is a main script (say, Main

Solution 1:

Have a look at PEP-3147. They describe how the python-lookup mechanism works.

enter image description here

So in your concrete case: Put the file Module1.pyc directly in the root folder.

Solution 2:

As stated below, two steps resolved the issue: Step 1: Copy the Module.cpython-32.pyc file from .__pycache__ directory to .\ Step 2: Rename the file to Module.pyc

PS: Thanks to gecco for sharing the detail.

Post a Comment for "Python Does Not Detect .pyc Files"