File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
PythonForDelphi/Components/Sources/Core Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,12 @@ procedure TPythonVersion.AssignTo(PythonEngine: TPersistent);
126126 if Is_venv then begin
127127 TPythonEngine(PythonEngine).VenvPythonExe := PythonExecutable;
128128 TPythonEngine(PythonEngine).SetPythonHome(DLLPath);
129- end else if not IsRegistered then
129+ end else if not IsRegistered or Is_conda then
130+ // Not sure why but PythonHome needs to be set even for
131+ // registered conda distributions
132+ // Note also that for conda distributions to work properly,
133+ // you need to add Format('%s;%0:s\Library\bin;', [Version.InstallPath]
134+ // to your Windows path if it is not there already.
130135 TPythonEngine(PythonEngine).SetPythonHome(InstallPath);
131136 end ;
132137end ;
You can’t perform that action at this time.
0 commit comments