Search code examples
pythonnuitka

Error 'nuitka' is a package and cannot be directly executed when trying to execute Nuitka


I have two python installations on Windows (3.4 and 3.5) where py refers to 3.4.

I installed nuitka using their 3.4 64 bit installer and then I installed Python 2.7 because it was listed as a requirement.

Then I tried:

> py -m nuitka

And got the error:

C:\Python34\python.exe: No module named nuitka.__main__; 'nuitka' is a package and cannot be directly executed

Solution

  • Nuitka can be accessed through its batch file in Python's script folder. For example:

    "C:\Python34\Scripts\nuitka.bat" --version
    > 0.5.18