Just to mention it according to the steps found in https://support.avast.com/en-gb/article/Antivirus-scan-exclusions/ you need to do the following to get pip whitelisted on Avast:
STEPS
Open Avast Antivirus and go to ☰ Menu ▸ Settings.
Select General ▸ Exceptions, then click Add exception.
Add an exception in one of the following ways:
Type the specific file/folder path or URL into the text box, then click Add exception.
Click Browse, tick the box next to a file or folder, For example in x64 system: HOME_DIRECTORY\AppData\Local\Programs\Python\Python39\Scripts\pip.exe
(depending on your version of python), then click OK.
Click Add Exeption
Your specified files, folder, or website is added to the exceptions list.
NOTE: You can select or add multiple files so its good to select pip.exe and pip3.exe and pip39.exe, depending on what python version you are using and what pip files you have in the folder