question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nuitka does not detect MinGW64 installation automatically

See original GitHub issue
  1. 0.6.9.3 Python: 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] Executable: C:\Users\andre\AppData\Local\Programs\Python\Python38\python.exe OS: Windows Arch: x86_64
  1. I downloaded nuitka. I downloaded and installed mingw64 in the correct path, chose both i686 and x86_64, there is no difference.

Output:

C:\Users\andre>python -m nuitka --mingw64 --plugin-enable=multiprocessing "E:\NEWEXEC2\NAIMBeta comp.py"
Nuitka:WARNING:Not recursing to 'cv2' (C:\Users\andre\AppData\Local\Programs\Python\Python38\lib\site-packages\cv2), please specify --nofollow-imports (do not warn), --follow-imports (recurse to all), --nofollow-import-to=cv2 (ignore it), --follow-import-to=cv2 (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'mouse' (C:\Users\andre\AppData\Local\Programs\Python\Python38\lib\site-packages\mouse), please specify --nofollow-imports (do not warn), --follow-imports (recurse to all), --nofollow-import-to=mouse (ignore it), --follow-import-to=mouse (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'numpy' (C:\Users\andre\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy), please specify --nofollow-imports (do not warn), --follow-imports (recurse to all), --nofollow-import-to=numpy (ignore it), --follow-import-to=numpy (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'mss' (C:\Users\andre\AppData\Local\Programs\Python\Python38\lib\site-packages\mss), please specify --nofollow-imports (do not warn), --follow-imports (recurse to all), --nofollow-import-to=mss (ignore it), --follow-import-to=mss (recurse to it) to change.
Nuitka-Plugins:INFO: multiprocessing: Injecting pre-module load code for module 'multiprocessing':
Nuitka-Plugins:INFO: multiprocessing:     Monkey patching "multiprocessing" load environment.
Nuitka-Plugins:INFO: multiprocessing: Injecting post-module load code for module 'multiprocessing':
Nuitka-Plugins:INFO: multiprocessing:     Monkey patching "multiprocessing" for compiled methods.
Nuitka-Scons:INFO: Backend C compiler: gcc (gcc).
Error, cannot locate suitable C compiler. You have the following options:

a) If a suitable Visual Studio version is installed, it will not be located
   automatically, unless you install pywin32 for the Python installation
   below "C:\Users\andre\AppData\Local\Programs\Python\Python38".

b) To make it find Visual Studio without registry execute from Start Menu
   the 'Visual Studio Command Prompt' or "vcvarsall.bat". That will add
   Visual Studio to the "PATH". And it then will be detected.

c) Install MinGW64 to "C:\MinGW64" or "\MinGW", where then it is automatically
   detected or add it to PATH before executing Nuitka. But be sure to pick the
   proper variant (32/64 bits, your Python arch is 'x86_64'), or else cryptic errors
   will be shown.

Normal MinGW will not work! MinGW64 does not mean 64 bits, just better
Windows compatibility.
Cygwin based gcc will not work.
MSYS2 based gcc will not work.
clang-cl will only work if MSVC already worked.

Doesn’t work with any code.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Oct 31, 2020

Released as part of 0.6.9.5

0reactions
Pro100rus32commented, Oct 26, 2020

Thanks! It finds gcc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuitka - convert Python to C: Cannot locate suitable C Compiler
c) Install MinGW64 to "C:\MinGW64" or "\MinGW", where then it is automatically detected or add it to PATH before executing Nuitka.
Read more >
Nuitka-chat/community - Gitter
I'll try playing around with it to see if I can get a minimal example ... Like I said, the plan is to...
Read more >
User Manual - Nuitka
No information is available for this page.
Read more >
Ubuntu Manpage: nuitka - the Python compiler
Default uses what you are using to run Nuitka, most likely a non-debug version. ... that is found in PATH, or a Python...
Read more >
nuitka — Debian testing
Otherwise Nuitka can use what you run Nuitka with or a "scons" binary that is found in PATH, or a Python installation from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found