擅长:python、mysql、java
<p>我也使用avast。安装新软件包时,Avast沙盒将被移除。取决于您使用的是什么/如果是virtualenv</p>
<p>您可以白名单/排除python的安装目录。对于windows,默认位置为<code>%localappdata%\Programs\Python</code>。这也是全局安装pip以及pyinstaller和其他全局安装包的地方</p>
<p>请注意,这将使avast不再扫描这些目录中与python相关的任何内容。因此,如果您担心从python软件包中感染病毒,那么您可以将pip exe本身列为白名单/排除在外,该文件专门位于</p>
<p><strong>32位Python 3.8</strong></p>
<p><code>%localappdata%\Programs\Python\Python38-32\Scripts\pip.exe</code></p>
<p><strong>64位Python 3.8</strong></p>
<p><code>%localappdata%\Programs\Python\Python38\Scripts\pip.exe</code></p>
<p>如果使用virtualenv白名单/排除这些目录,因为这些virtualenv使用pip的本地副本而不是全局副本。这应该可以修复与pip/virtualenv/pipenv的混淆</p>