Avast 阻止 pip 和 Pyinstaller [英] Avast blocks pip and Pyinstaller

查看:41
本文介绍了Avast 阻止 pip 和 Pyinstaller的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个简单的 GUI Tkinter 程序.我打算编译我的程序(使用 Pyinstaller),但 Avast 阻止了 PIP.所以我忽略了它.编译完成时.我运行编译的 .exe 程序,程序说:无法执行脚本,Avast 被阻塞.如何修复此错误以及问题是什么?

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?

现在 Avast 不阻止 .exe(但阻止 PIP)

edit:now Avast is not blocking .exe(but blocking PIP)

推荐答案

我也使用 avast.安装新软件包时 Avast 沙箱 pipenv.取决于你使用的是什么/如果 virtualenv.

I use avast as well. Avast sandboxes pipenv when installing a new package. Depending on what/if virtualenv your using.

您可以将python的安装目录列入白名单/排除.对于 Windows,默认位置是 %localappdata%\Programs\Python.这也是全局安装 pip 以及全局安装的 pyinstaller 和其他包的地方.

You can whitelist/exclude python's install directory. For windows the default location is %localappdata%\Programs\Python. This is also where pip is installed globally as well as pyinstaller and other packages that are installed globally.

请注意,这将使 avast 不再扫描这些目录中与 python 相关的任何内容.因此,如果您担心从 python 包中获取病毒,那么您可以将特定位置的 pip exe 本身列入白名单/排除...

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 位 Python 3.8

%localappdata%\Programs\Python\Python38-32\Scripts\pip.exe

64 位 Python 3.8

%localappdata%\Programs\Python\Python38\Scripts\pip.exe

如果您使用 virtualenv 白名单/排除这些目录,因为这些 virtualenv 使用 pip 的本地副本而不是全局副本.这应该可以修复 pip/virtualenv/pipenv 的 Avast 混乱

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

这篇关于Avast 阻止 pip 和 Pyinstaller的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆