安装“PyCall”时报错。还需要装什么东西吗?


#1
┌ Error: Error building `PyCall`:
│ ┌ Info: No system-wide Python was found; got the following error:
│ │ Base.IOError("could not spawn setenv(`pythoncommand -c \"import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'))\"`,[\"USERDOMAIN_ROAMINGPROFILE=DESKTOP-TRFIVAI\", \"DISABLE_FALLBACK=true\", \"HOMEPATH=\\\\Users\\\\BoshLee\", \"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\", \"GKS_USE_CAIRO_PNG=true\", \"APPDATA=C:\\\\Users\\\\BoshLee\\\\AppData\\\\Roaming\", \"PUBLIC=C:\\\\Users\\\\Public\", \"USERDOMAIN=DESKTOP-TRFIVAI\", \"OS=Windows_NT\", \"PROCESSOR_REVISION=9e0a\", \"TMP=C:\\\\Users\\\\BoshLee\\\\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\\\\iCLS Client\\\\;C:\\\\Program Files\\\\Intel\\\\iCLS Client\\\\;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;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\\\\Intel\\\\WiFi\\\\bin\\\\;C:\\\\Program Files\\\\Common Files\\\\Intel\\\\WirelessCommon\\\\;C:\\\\WINDOWS\\\\system32;C:\\\\WINDOWS;C:\\\\WINDOWS\\\\System32\\\\Wbem;C:\\\\WINDOWS\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\WINDOWS\\\\System32\\\\OpenSSH\\\\;C:\\\\Program Files\\\\NVIDIA Corporation\\\\NVIDIA NvDLISR;C:\\\\Program Files\\\\dotnet\\\\;C:\\\\Program Files (x86)\\\\NVIDIA Corporation\\\\PhysX\\\\Common;%SystemRoot%\\\\system32;%SystemRoot%;%SystemRoot%\\\\System32\\\\Wbem;%SYSTEMROOT%\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;%SYSTEMROOT%\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\BoshLee\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;\", \"COMPUTERNAME=DESKTOP-TRFIVAI\", \"GKSwstype=svg\", \"USERNAME=BoshLee\", \"CommonProgramFiles(x86)=C:\\\\Program Files (x86)\\\\Common Files\", \"CommonProgramFiles=C:\\\\Program Files\\\\Common Files\", \"USERPROFILE=C:\\\\Users\\\\BoshLee\", \"GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q\", \"PSModulePath=C:\\\\Program Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Users\\\\BoshLee\\\\Documents\\\\WindowsPowerShell\\\\Modules;C:\\\\Program Files (x86)\\\\WindowsPowerShell\\\\Modules;C:\\\\WINDOWS\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules\", \"PROCESSOR_LEVEL=6\", \"JULIA_PKG_TOKEN_PATH=C:\\\\Users\\\\BoshLee\\\\.juliapro\\\\token.toml\", \"=C:=C:\\\\Users\\\\BoshLee\\\\.juliapro\\\\JuliaPro_v1.1.1.1\\\\packages\\\\PyCall\\\\ttONZ\\\\deps\", \"TERM=xterm-256color\", \"SystemDrive=C:\", \"AGSDESKTOPJAVA=C:\\\\Program Files (x86)\\\\ArcGIS\\\\Desktop10.3\\\\\", \"HOMEDRIVE=C:\", \"TEMP=C:\\\\Users\\\\BoshLee\\\\AppData\\\\Local\\\\Temp\", \"PYTHONIOENCODING=UTF-8\", \"PYTHON=pythoncommand\", \"NODE_PATH=D:\\\\JuliaPro-1.1.1.1\\\\app-1.36.0\\\\resources\\\\app.asar\\\\exports\", \"LOCALAPPDATA=C:\\\\Users\\\\BoshLee\\\\AppData\\\\Local\", \"PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 10, GenuineIntel\", \"DriverData=C:\\\\Windows\\\\System32\\\\Drivers\\\\DriverData\", \"NUMBER_OF_PROCESSORS=6\", \"ComSpec=C:\\\\WINDOWS\\\\system32\\\\cmd.exe\", \"SystemRoot=C:\\\\WINDOWS\", \"JULIA_PKG_SERVER=https://pkg.juliacomputing.com/\", \"OneDrive=C:\\\\Users\\\\BoshLee\\\\OneDrive\", \"GKS_FILEPATH=C:\\\\Users\\\\BoshLee\\\\AppData\\\\Local\\\\Temp\\\\jl_556B.tmp.png\", \"ProgramFiles(x86)=C:\\\\Program Files (x86)\", \"JULIA_NUM_THREADS=3\", \"GRDIR=C:\\\\Users\\\\BoshLee\\\\.juliapro\\\\JuliaPro_v1.1.1.1\\\\packages\\\\GR\\\\LRaKi\\\\src\\\\..\\\\deps\\\\gr\", \"PSExecutionPolicyPreference=Bypass\", \"JUNORC_PATH=D:\\\\JuliaPro-1.1.1.1\\\\.atom\", \"GKS_FONTPATH=C:\\\\Users\\\\BoshLee\\\\.juliapro\\\\JuliaPro_v1.1.1.1\\\\packages\\\\GR\\\\LRaKi\\\\src\\\\..\\\\deps\\\\gr\", \"LOGONSERVER=\\\\\\\\DESKTOP-TRFIVAI\", \"windir=C:\\\\WINDOWS\", \"ATOM_HOME=D:\\\\JuliaPro-1.1.1.1\\\\.atom\", \"JULIA_LOAD_PATH=@;C:\\\\Users\\\\BoshLee\\\\AppData\\\\Local\\\\Temp\\\\jl_7C9.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\BoshLee\AppData\Local\Temp\python.exe' 'C:\Users\BoshLee\.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\find_libpython.py' --list-all`,["USERDOMAIN_ROAMINGPROFILE=DESKTOP-TRFIVAI", "DISABLE_FALLBACK=true", "HOMEPATH=\\Users\\BoshLee", "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", "GKS_USE_CAIRO_PNG=true", "APPDATA=C:\\Users\\BoshLee\\AppData\\Roaming", "PUBLIC=C:\\Users\\Public", "USERDOMAIN=DESKTOP-TRFIVAI", "OS=Windows_NT", "PROCESSOR_REVISION=9e0a", "TMP=C:\\Users\\BoshLee\\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\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;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\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;%SYSTEMROOT%\\System32\\OpenSSH\\;C:\\Users\\BoshLee\\AppData\\Local\\Microsoft\\WindowsApps;", "COMPUTERNAME=DESKTOP-TRFIVAI", "GKSwstype=svg", "USERNAME=BoshLee", "CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files", "CommonProgramFiles=C:\\Program Files\\Common Files", "USERPROFILE=C:\\Users\\BoshLee", "GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q", "PSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Users\\BoshLee\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules", "PROCESSOR_LEVEL=6", "JULIA_PKG_TOKEN_PATH=C:\\Users\\BoshLee\\.juliapro\\token.toml", "=C:=C:\\Users\\BoshLee\\.juliapro\\JuliaPro_v1.1.1.1\\packages\\PyCall\\ttONZ\\deps", "TERM=xterm-256color", "SystemDrive=C:", "AGSDESKTOPJAVA=C:\\Program Files (x86)\\ArcGIS\\Desktop10.3\\", "HOMEDRIVE=C:", "TEMP=C:\\Users\\BoshLee\\AppData\\Local\\Temp", "PYTHONIOENCODING=UTF-8", "PYTHON=pythoncommand", "NODE_PATH=D:\\JuliaPro-1.1.1.1\\app-1.36.0\\resources\\app.asar\\exports", "LOCALAPPDATA=C:\\Users\\BoshLee\\AppData\\Local", "PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 10, GenuineIntel", "DriverData=C:\\Windows\\System32\\Drivers\\DriverData", "NUMBER_OF_PROCESSORS=6", "ComSpec=C:\\WINDOWS\\system32\\cmd.exe", "SystemRoot=C:\\WINDOWS", "JULIA_PKG_SERVER=https://pkg.juliacomputing.com/", "OneDrive=C:\\Users\\BoshLee\\OneDrive", "GKS_FILEPATH=C:\\Users\\BoshLee\\AppData\\Local\\Temp\\jl_556B.tmp.png", "ProgramFiles(x86)=C:\\Program Files (x86)", "JULIA_NUM_THREADS=3", "GRDIR=C:\\Users\\BoshLee\\.juliapro\\JuliaPro_v1.1.1.1\\packages\\GR\\LRaKi\\src\\..\\deps\\gr", "PSExecutionPolicyPreference=Bypass", "JUNORC_PATH=D:\\JuliaPro-1.1.1.1\\.atom", "GKS_FONTPATH=C:\\Users\\BoshLee\\.juliapro\\JuliaPro_v1.1.1.1\\packages\\GR\\LRaKi\\src\\..\\deps\\gr", "LOGONSERVER=\\\\DESKTOP-TRFIVAI", "windir=C:\\WINDOWS", "ATOM_HOME=D:\\JuliaPro-1.1.1.1\\.atom", "JULIA_LOAD_PATH=@;C:\\Users\\BoshLee\\AppData\\Local\\Temp\\jl_7C9.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]


│  [7] #readlines#288 at .\io.jl:414 [inlined]
│  [8] readlines at .\io.jl:414 [inlined]
│  [9] exec_find_libpython at C:\Users\BoshLee\.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\BoshLee\.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\buildutils.jl:43
│  [11] find_libpython(::String) at C:\Users\BoshLee\.juliapro\JuliaPro_v1.1.1.1\packages\PyCall\ttONZ\deps\buildutils.jl:41
│  [12] top-level scope at C:\Users\BoshLee\.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\BoshLee\.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

#2

试下?


#3

谢谢!zszszs


#4

怎么解决的 我一脸懵逼