@echo off set PYPATH=".\Python310" %PYPATH%\python.exe .\Python310\Scripts\pip3.exe freeze > uninstall.txt %PYPATH%\python.exe .\Python310\Scripts\pip3.exe uninstall --yes -r uninstall.txt del uninstall.txt %PYPATH%\python.exe %PYPATH%\Scripts\pip3.exe install --no-warn-script-location cleanpy %PYPATH%\python.exe %PYPATH%\Scripts\pip3.exe cache purge .\Python310\Scripts\cleanpy.exe "%PYPATH%" pause