We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3cd03 commit 29a2cc6Copy full SHA for 29a2cc6
1 file changed
PythonForDelphi/Components/Sources/Core/PythonVersions.pas
@@ -126,7 +126,12 @@ procedure TPythonVersion.AssignTo(PythonEngine: TPersistent);
126
if Is_venv then begin
127
TPythonEngine(PythonEngine).VenvPythonExe := PythonExecutable;
128
TPythonEngine(PythonEngine).SetPythonHome(DLLPath);
129
- end else if not IsRegistered then
+ 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.
135
TPythonEngine(PythonEngine).SetPythonHome(InstallPath);
136
end;
137
0 commit comments