From 577491fc5ae268519224e889f9e83e77de1a7d1b Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 27 Apr 2025 14:28:34 -0400 Subject: [PATCH] Check if Script or bin folder on Windows --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 29b7b75..be87d23 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ Photo De-Duplication ``` cd dedup python -m venv C:\Users\$env:USERNAME\Common\env_dedup - +``` +Check to see if C:\Users\$env:USERNAME\Common\env_dedup\Scripts OR bin folder exists in Windows... +``` & C:\Users\$env:USERNAME\Common\env_dedup\Scripts\Activate.ps1 ``` If you get an error like: "running scripts is disabled on this system" @@ -14,17 +16,20 @@ It means your PowerShell execution policy is too restrictive. You can temporaril ``` Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass ``` -Check to see if C:\Users\$env:USERNAME\Common\env_dedup\Scripts OR bin folder exists in Windows... +After that repeat the Activate Script command: ``` If that does not work, then TRY: & C:\Users\$env:USERNAME\Common\env_dedup\bin\Activate.ps1 - +``` +Here are the packages that need to be installed by pip: +``` pip install xxhash opencv-python ``` ## Usage Windows: +Again, verify if the folder exists Scripts or bin: ``` - +& C:\Users\$env:USERNAME\Common\env_dedup\Scripts\Activate.ps1 python dedup.py 0.jpg 1.jpg ```