From 9c2f76b5d02897f169f38948bbfd51786c104ec3 Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 27 Apr 2025 14:24:55 -0400 Subject: [PATCH] & before the path allows PowerShell to run a Script... --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5b14e87..29b7b75 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,24 @@ Photo De-Duplication ``` cd dedup python -m venv C:\Users\$env:USERNAME\Common\env_dedup + +& C:\Users\$env:USERNAME\Common\env_dedup\Scripts\Activate.ps1 +``` +If you get an error like: "running scripts is disabled on this system" +It means your PowerShell execution policy is too restrictive. You can temporarily allow scripts by running: +``` +Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass +``` +Check to see if C:\Users\$env:USERNAME\Common\env_dedup\Scripts OR bin folder exists in Windows... +``` +If that does not work, then TRY: +& C:\Users\$env:USERNAME\Common\env_dedup\bin\Activate.ps1 + pip install xxhash opencv-python ``` ## Usage Windows: ``` -C:\Users\$env:USERNAME\Common\env_dedup\Scripts\Activate.ps1 -If that does not work, then TRY: -C:\Users\$env:USERNAME\Common\env_dedup\bin\Activate.ps1 python dedup.py 0.jpg 1.jpg ``` @@ -45,4 +55,4 @@ python dedup.py 0.jpg 1.jpg ./get_dups.sh $HOME/Pictures ``` -[Image of ScreenShot](Screenshot2025-04-26.png) +[![Image of ScreenShot](Screenshot2025-04-26.png)]