Stack Overflow Asked by dripis on December 9, 2020
I’m making a Simple GUI Tkinter Program. I was going to compile my Program (with Pyinstaller) but Avast is blocking PIP. So I ignored it. When Compile was Finished.
I run the compiled .exe program and the program are saying:
failed to execute the script, Avast is blocking.
How to fix this error and What am the issue?
edit:now Avast is not blocking .exe(but blocking PIP)
I use avast as well. Avast sandboxes pipenv when installing a new package. Depending on what/if virtualenv your using.
You can whitelist/exclude python's install directory. For windows the default location is %localappdata%ProgramsPython
. This is also where pip is installed globally as well as pyinstaller and other packages that are installed globally.
Be warned this will make it so avast no longer scans anything related to python in those directories. So if you're worried about getting a virus from a python package then you can whitelist/exclude the pip exe itself which is located specifically...
32-bit Python 3.8
%localappdata%ProgramsPythonPython38-32Scriptspip.exe
64-bit Python 3.8
%localappdata%ProgramsPythonPython38Scriptspip.exe
If you use a virtualenv whitelist/exclude those directories since those virtualenvs use a local copy of pip instead of the global one. That should fix avast messing with pip/virtualenv/pipenv
Answered by Mythalorian on December 9, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP