Nuitka does not detect MinGW64 installation automatically
See original GitHub issue- 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
- 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:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top 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 >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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released as part of 0.6.9.5
Thanks! It finds gcc.