🌐 AI搜索 & 代理 主页
Skip to content
Discussion options

You must be logged in to vote

Oh my god!
It's a mistake.
We must use ":" instead of ";"

            string winPath = @"D:\tools\python310";
            string linuxPath = "/opt/miniconda3/envs/py310";


            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                string pathToVirtualEnv = winPath;
                Runtime.PythonDLL = Path.Combine(pathToVirtualEnv, "python310.dll");
                PythonEngine.PythonHome = Path.Combine(pathToVirtualEnv, "python.exe");
                PythonEngine.PythonPath = @$"{pathToVirtualEnv}\Lib\site-packages;{pathToVirtualEnv}\Lib;{pathToVirtualEnv}\DLLs";

            }
            else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zhanxh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zhanxh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2216 on August 09, 2023 07:01.