Thanks for your reply.
I have tried setting path as mentioned, but it still doesn’t work, which seemingly indicates that Julia can not find my path.
julia> Pkg.build(“PyCall”)
Building Conda ─→ C:\Users\86139\.juliapro\JuliaPro_v1.1.1.1\packages\Conda\CpuvI\deps\bu ild.log
Building PyCall → C:\Users\86139\.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\b uild.log
┌ Error: Error building PyCall
:
│ ┌ Info: No system-wide Python was found; got the following error:
│ │ Base.IOError(“could not spawn setenv('C:\\\\Users\\\\86139\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python37' -c \"import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'))\"
,["USERDOMAIN_ROAMINGPROFILE=DESKTOP-F6AESQP", "DISABLE_FALLBACK=true", "HOMEPATH=\\Users\\86139", "ProgramData=C:\\ProgramData", "ProgramW6432=C:\\Program Files", "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL", "NODE_ENV=production", "SESSIONNAME=Console", "APPDATA=C:\\Users\\86139\\AppData\\Roaming", "PUBLIC=C:\\Users\\Public", "USERDOMAIN=DESKTOP-F6AESQP", "OS=Windows_NT", "PROCESSOR_REVISION=8e0a", "PyCharm=D:\\JetBrains\\PyCharm 2018.3.5\\bin;", "TMP=C:\\Users\\86139\\AppData\\Local\\Temp", "JULIA_EDITOR=\"D:\\JuliaPro-1.1.1.1\\app-1.36.0\\atom.exe\" -a", "ALLUSERSPROFILE=C:\\ProgramData", "Path=D:\\JuliaPro-1.1.1.1\\Julia-1.1.1\\share\\julia\\stdlib\\v1.1\\MbedTLS;D:\\JuliaPro-1.1.1.1\\Julia-1.1.1\\share\\julia\\stdlib\\v1.1\\MbedTLS\\deps\\usr\\bin;D:\\JuliaPro-1.1.1.1\\Julia-1.1.1\\share\\julia\\stdlib\\v1.1\\MbedTLS;D:\\JuliaPro-1.1.1.1\\Julia-1.1.1\\share\\julia\\stdlib\\v1.1\\MbedTLS\\deps\\usr\\bin;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\iCLS\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\iCLS\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;D:\\Polyspace\\R2019a\\runtime\\win64;D:\\Polyspace\\R2019a\\bin;D:\\Polyspace\\R2019a\\polyspace\\bin;C:\\Users\\86139\\AppData\\Local\\Programs\\Python\\Python37\\Scripts;C:\\Users\\86139\\AppData\\Local\\Programs\\Python\\Python37;C:\\Users\\86139\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\86139\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\86139\\AppData\\Local\\GitHubDesktop\\bin;D:\\JetBrains\\PyCharm 2018.3.5\\bin;;C:\\Program Files\\Java\\jdk-12\\bin;", "COMPUTERNAME=DESKTOP-F6AESQP", "JAVA_HOME=C:\\Program Files\\Java\\jdk-12", "USERNAME=86139", "CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files", "CommonProgramFiles=C:\\Program Files\\Common Files", "CLASSPATH=.;C:\\Program Files\\Java\\jdk-12\\lib;C:\\Program Files\\Java\\jdk-12\\lib\\tools.jar", "USERPROFILE=C:\\Users\\86139", "GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q", "PSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Users\\86139\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules", "PROCESSOR_LEVEL=6", "python=C:\\\\Users\\\\86139\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python37", "JULIA_PKG_TOKEN_PATH=C:\\Users\\86139\\.juliapro\\token.toml", "=C:=C:\\Users\\86139\\.juliapro\\JuliaPro_v1.1.1.1\\packages\\PyCall\\ttONZ\\deps", "TERM=xterm-256color", "SystemDrive=C:", "HOMEDRIVE=C:", "TEMP=C:\\Users\\86139\\AppData\\Local\\Temp", "PYTHONIOENCODING=UTF-8", "NODE_PATH=D:\\JuliaPro-1.1.1.1\\app-1.36.0\\resources\\app.asar\\exports", "LOCALAPPDATA=C:\\Users\\86139\\AppData\\Local", "PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 10, GenuineIntel", "DriverData=C:\\Windows\\System32\\Drivers\\DriverData", "NUMBER_OF_PROCESSORS=8", "ComSpec=C:\\Windows\\system32\\cmd.exe", "SystemRoot=C:\\Windows", "JULIA_PKG_SERVER=https://pkg.juliacomputing.com/\”, "OneDrive=C:\\Users\\86139\\OneDrive - CUHK-ShenZhen", "ProgramFiles(x86)=C:\\Program Files (x86)", "JULIA_NUM_THREADS=4", "PSExecutionPolicyPreference=Bypass", "JUNORC_PATH=D:\\JuliaPro-1.1.1.1\\.atom", "LOGONSERVER=\\\\DESKTOP-F6AESQP", "windir=C:\\Windows", "OneDriveCommercial=C:\\Users\\86139\\OneDrive - CUHK-ShenZhen", "ATOM_HOME=D:\\JuliaPro-1.1.1.1\\.atom", "JULIA_LOAD_PATH=@;C:\\Users\\86139\\AppData\\Local\\Temp\\jl_568B.tmp", "CommonProgramW6432=C:\\Program Files\\Common Files", "ProgramFiles=C:\\Program Files", "PROCESSOR_ARCHITECTURE=AMD64", "OPENBLAS_MAIN_FREE=1"]): no such file or directory (ENOENT)“, -4058)
│ └ using the Python distribution in the Conda package
│ ERROR: LoadError: IOError: could not spawn setenv('C:\Users\86139\AppData\Local\Temp\python.exe' 'C:\Users\86139\.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\find_libpython.py' --list-all
,[“USERDOMAIN_ROAMINGPROFILE=DESKTOP-F6AESQP”, “DISABLE_FALLBACK=true”, “HOMEPATH=\Users\86139”, “ProgramData=C:\ProgramData”, “ProgramW6432=C:\Program Files”, “PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL”, “NODE_ENV=production”, “SESSIONNAME=Console”, “APPDATA=C:\Users\86139\AppData\Roaming”, “PUBLIC=C:\Users\Public”, “USERDOMAIN=DESKTOP-F6AESQP”, “OS=Windows_NT”, “PROCESSOR_REVISION=8e0a”, “PyCharm=D:\JetBrains\PyCharm 2018.3.5\bin;”, “TMP=C:\Users\86139\AppData\Local\Temp”, “JULIA_EDITOR="D:\JuliaPro-1.1.1.1\app-1.36.0\atom.exe" -a”, “ALLUSERSPROFILE=C:\ProgramData”, “Path=D:\JuliaPro-1.1.1.1\Julia-1.1.1\share\julia\stdlib\v1.1\MbedTLS;D:\JuliaPro-1.1.1.1\Julia-1.1.1\share\julia\stdlib\v1.1\MbedTLS\deps\usr\bin;D:\JuliaPro-1.1.1.1\Julia-1.1.1\share\julia\stdlib\v1.1\MbedTLS;D:\JuliaPro-1.1.1.1\Julia-1.1.1\share\julia\stdlib\v1.1\MbedTLS\deps\usr\bin;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;D:\Polyspace\R2019a\runtime\win64;D:\Polyspace\R2019a\bin;D:\Polyspace\R2019a\polyspace\bin;C:\Users\86139\AppData\Local\Programs\Python\Python37\Scripts;C:\Users\86139\AppData\Local\Programs\Python\Python37;C:\Users\86139\AppData\Local\Microsoft\WindowsApps;C:\Users\86139\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\86139\AppData\Local\GitHubDesktop\bin;D:\JetBrains\PyCharm 2018.3.5\bin;;C:\Program Files\Java\jdk-12\bin;”, “COMPUTERNAME=DESKTOP-F6AESQP”, “JAVA_HOME=C:\Program Files\Java\jdk-12”, “USERNAME=86139”, “CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files”, “CommonProgramFiles=C:\Program Files\Common Files”, “CLASSPATH=.;C:\Program Files\Java\jdk-12\lib;C:\Program Files\Java\jdk-12\lib\tools.jar”, “USERPROFILE=C:\Users\86139”, “GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q”, “PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Users\86139\Documents\WindowsPowerShell\Modules;C:\Program Files (x86)\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules”, “PROCESSOR_LEVEL=6”, “python=C:\\Users\\86139\\AppData\\Local\\Programs\\Python\\Python37”, “JULIA_PKG_TOKEN_PATH=C:\Users\86139\.juliapro\token.toml”,
“=C:=C:\Users\86139\.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps”, “TERM=xterm-256color”, “SystemDrive=C:”, “HOMEDRIVE=C:”, “TEMP=C:\Users\86139\AppData\Local\Temp”, “PYTHONIOENCODING=UTF-8”, “NODE_PATH=D:\JuliaPro-1.1.1.1\app-1.36.0\resources\app.asar\exports”, “LOCALAPPDATA=C:\Users\86139\AppData\Local”, “PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 10, GenuineIntel”, “DriverData=C:\Windows\System32\Drivers\DriverData”, “NUMBER_OF_PROCESSORS=8”, “ComSpec=C:\Windows\system32\cmd.exe”, “SystemRoot=C:\Windows”, “JULIA_PKG_SERVER=https://pkg.juliacomputing.com/”, “OneDrive=C:\Users\86139\OneDrive - CUHK-ShenZhen”, “ProgramFiles(x86)=C:\Program Files (x86)”, “JULIA_NUM_THREADS=4”, “PSExecutionPolicyPreference=Bypass”, “JUNORC_PATH=D:\JuliaPro-1.1.1.1\.atom”, “LOGONSERVER=\\DESKTOP-F6AESQP”, “windir=C:\Windows”, “OneDriveCommercial=C:\Users\86139\OneDrive -
CUHK-ShenZhen”, “ATOM_HOME=D:\JuliaPro-1.1.1.1\.atom”, “JULIA_LOAD_PATH=@;C:\Users\86139\AppData\Local\Temp\jl_568B.tmp”, “CommonProgramW6432=C:\Program Files\Common Files”, “ProgramFiles=C:\Program Files”, “PROCESSOR_ARCHITECTURE=AMD64”, “OPENBLAS_MAIN_FREE=1”]): no
such file or directory (ENOENT)
│ Stacktrace:
│ [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:400
│ [2] #505 at .\process.jl:413 [inlined]
│ [3] setup_stdios(::getfield(Base, Symbol(”##505#506")){Cmd}, ::Array{Any,1}) at .\process.jl:497
│ [4] _spawn at .\process.jl:412 [inlined]
│ [5] #eachline#511(::Bool, ::Function, ::Cmd) at .\process.jl:618
│ [6] eachline at .\process.jl:617 [inlined]
│ [7] #readlines#288 at .\io.jl:414 [inlined]
│ [8] readlines at .\io.jl:414 [inlined]
│ [9] exec_find_libpython at C:\Users\86139.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\buildutils.jl:28 [inlined]
│ [10] #find_libpython#3(::typeof(Libdl.dlopen), ::Function, ::String) at C:\Users\86139.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\buildutils.jl:43
│ [11] find_libpython(::String) at C:\Users\86139.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\buildutils.jl:41
│ [12] top-level scope at C:\Users\86139.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\build.jl:87
│ [13] include at .\boot.jl:326 [inlined]
│ [14] include_relative(::Module, ::String) at .\loading.jl:1038
│ [15] include(::Module, ::String) at .\sysimg.jl:29
│ [16] include(::String) at .\client.jl:403
│ [17] top-level scope at none:0
│ in expression starting at C:\Users\86139.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\build.jl:43
└ @ Pkg.Operations C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Pkg\src\Operations.jl:1138