You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The env.bat shipped with WinPython failed in my computer. I tracked down the issue to a folder in the PATH variable containing an ampersand (&).
The symptom was spyder and the rest not working, and execution of scripts\env.bat yielded
The system cannot find the path specified
The offending lines are
echo ;%PATH%; | %FINDDIR%\find.exe /C /I ";%WINPYDIR%;" >nul
if %ERRORLEVEL% NEQ 0 set PATH=%WINPYDIR%\Lib\site-packages\PyQt5;%WINPYDIR%\Lib\site-packages\PyQt4;%WINPYDIR%\Lib\site-packages\PySide2;%WINPYDIR%;%WINPYDIR%\DLLs;%WINPYDIR%\Scripts;%WINPYDIR%..\t;%WINPYDIR%..\t\mingw32\bin;%WINPYDIR%..\t\R\bin\i386;%WINPYDIR%..\t\Julia\bin;%WINPYDIR%..\t\n;%PATH%;
Enclosing the PATH variables in double quotes solved the problem, and I believe makes no harm:
echo ";%PATH%;" | %FINDDIR%\find.exe /C /I ";%WINPYDIR%;" >nul
if %ERRORLEVEL% NEQ 0 set PATH="%WINPYDIR%\Lib\site-packages\PyQt5;%WINPYDIR%\Lib\site-packages\PyQt4;%WINPYDIR%\Lib\site-packages\PySide2;%WINPYDIR%;%WINPYDIR%\DLLs;%WINPYDIR%\Scripts;%WINPYDIR%..\t;%WINPYDIR%..\t\mingw32\bin;%WINPYDIR%..\t\R\bin\i386;%WINPYDIR%..\t\Julia\bin;%WINPYDIR%..\t\n;%PATH%;"
An example of a folder name where the problem shows up is:
c:\Program Files (x86)\R&R
The text was updated successfully, but these errors were encountered:
The env.bat shipped with WinPython failed in my computer. I tracked down the issue to a folder in the PATH variable containing an ampersand (&).
The symptom was spyder and the rest not working, and execution of scripts\env.bat yielded
The system cannot find the path specified
The offending lines are
echo ;%PATH%; | %FINDDIR%\find.exe /C /I ";%WINPYDIR%;" >nul
if %ERRORLEVEL% NEQ 0 set PATH=%WINPYDIR%\Lib\site-packages\PyQt5;%WINPYDIR%\Lib\site-packages\PyQt4;%WINPYDIR%\Lib\site-packages\PySide2;%WINPYDIR%;%WINPYDIR%\DLLs;%WINPYDIR%\Scripts;%WINPYDIR%..\t;%WINPYDIR%..\t\mingw32\bin;%WINPYDIR%..\t\R\bin\i386;%WINPYDIR%..\t\Julia\bin;%WINPYDIR%..\t\n;%PATH%;
Enclosing the PATH variables in double quotes solved the problem, and I believe makes no harm:
echo ";%PATH%;" | %FINDDIR%\find.exe /C /I ";%WINPYDIR%;" >nul
if %ERRORLEVEL% NEQ 0 set PATH="%WINPYDIR%\Lib\site-packages\PyQt5;%WINPYDIR%\Lib\site-packages\PyQt4;%WINPYDIR%\Lib\site-packages\PySide2;%WINPYDIR%;%WINPYDIR%\DLLs;%WINPYDIR%\Scripts;%WINPYDIR%..\t;%WINPYDIR%..\t\mingw32\bin;%WINPYDIR%..\t\R\bin\i386;%WINPYDIR%..\t\Julia\bin;%WINPYDIR%..\t\n;%PATH%;"
An example of a folder name where the problem shows up is:
c:\Program Files (x86)\R&R
The text was updated successfully, but these errors were encountered: