Reputation: 364
I have an AntiVirus false positive problem of my exe
file generated using PyInstaller, by searching i found this answer witch consist of recompiling the bootloader and i just can't get it done.
This what i've tried so far:
python ./waf distclean all
got the error can't open file './waf': [Errno 2] No such file or directory
Or maybe there is another way to make the executable not detected as virus/trojan.
Packages used : PyQt5, pysnmp, pandas, numpy.
EDIT:
Thanks to @Ana Knickerbocker answer i was able to make a progression, now when i run python ./waf all
i got the error :
Python Version : 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)]
Checking for 'msvc' (C compiler) : not found
Checking for 'gcc' (C compiler) : not found
Checking for 'clang' (C compiler) : not found
could not configure a C compiler!
I guess i still don't have a compiler, i've tried pip install vsbuildtools
but i got this message : No matching distribution found for vcbuildtools
any ideas ?
Im on Windows 7 x64
Upvotes: 17
Views: 20298
Reputation: 925
Hey you don't need visual studio to build pyinstaller's bootloader, you can do it in your terminal if you have python or python3 installed. It's important to know which one you are using. I will assume you use python3, try the following steps in your terminal/command line:
git clone https://github.com/pyinstaller/pyinstaller
cd pyinstaller
, then cd bootloader
Run python3 ./waf distclean all
to build the bootloader for your system.
Once the bootloader has been built, in the pyinstaller directory type in: python3 setup.py install
(if this fails, pip install .
might work instead)
This should have installed pyinstaller. Type pyinstaller in the terminal and hit enter. It should recognize the command, but it will complain about more arguments.
Use the command pyinstaller yourfile.py
to create your executable.
Hope this helped!
Upvotes: 20
Reputation: 59
For anyone getting the error 'could not configure a C compiler!
Simply install a C compiler on your machine.
I installed Visual Studio with C++ compiler as was easier and more legitimate.
https://visualstudio.microsoft.com/vs/features/cplusplus/
Upvotes: 3
Reputation: 66
The bootloader source is not installed if you are using pip install …
. You need to use a source package of PyInstaller (either a git clone or download an archive from github).
Upvotes: 2