Would you be willing to help me do that?
I've just encountered the same problem. I did the same thing as you to no avail - Plex was still crashing. I figured out a way, though -- a .bat file which will run Plex for me with some custom environment variables set, therefore not messing with my global Python installation.
Please note everything is hardcoded, but it should work on standard installations. If you use HTPC, you might need to modify the path, but it should be pretty readable. It won't let me attach a bat file, so I'll just include it as text - hope that's fine.
@echo off
setlocal
:: Get the current PATH
set "originalPath=%PATH%"
:: Create a new PATH, excluding directories containing 'Python'
set "newPath="
for %%P in ("%originalPath:;=";"%") do (
echo.%%~P | find /i "Python" >nul || (
if not defined newPath (
set "newPath=%%~P"
) else (
set "newPath=%newPath%;%%~P"
)
)
)
:: Add the new directory to the PATH
set "newPath=%newPath%;C:\Program Files (x86)\SVP 4\mpv64"
:: Set the PYTHONPATH
set "PYTHONPATH=C:\Program Files (x86)\SVP 4\mpv64"
:: Run Plex.exe with the new environment
cmd /C "set "PATH=%newPath%" && start "" "C:\Program Files\Plex\Plex\Plex.exe""
endlocal