У меня есть ниже
protected void RunPython(string scriptname)
{
var p = new Process();
p.StartInfo.FileName = @"python";
p.StartInfo.Arguments = scriptname;
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
p.StartInfo.UseShellExecute = true;
p.Start();
Assert.True(p.WaitForExit(10000));
}
Когда я его вызываю (в настоящее время отлаживается сборка из VS), он вызывает python 2.2.. (у меня установлены 2,2, 2,6, 2,7, 3,3 и 3,4)
В моей PATH всего 3,4. Если я вызываю "python --version" или "Python.exe --version" из командной строки, это говорит мне, что я использую 3.4
Где находится.Net нахождение 2.2?/Как его остановить?
Изменение: Дополнение
PATH (User): C:\Tcl\bin;C:\Users\[UserName]\AppData\Roaming\npm;%PATH%;C:\Program Files (x86)\Nmap
PATH (System): C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\TortoiseGit\bin;C:\Program Files\PostgreSQL\9.3\bin;C:\Python34;C:\Program Files\nodejs\;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Vim\vim74;C:\Program Files\TortoiseSVN\bin
благодаря
Нашел вопрос
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Пути приложений \Python.exe
Появляется Процесс не знает знания PATH, или если он использует его во-вторых