2

您好我正在尝试在 Julia 上安装 SymEngine 并收到以下错误。我已经坚持了好几个小时了,我只是浪费了一半以上的时间。请帮忙!!!!

我已经直接进入 Windows 注册表(WinHTTP 注册表区域)并尝试了快速修复 msi 安装,但其他尝试均无济于事。我不知道如何访问 Powershell 并强制它使用 TLS1.2+,因此让 Julia 从 github 正确获取包。Sym Engine 并不是我想要加载的全部内容,但让我们从这个特定的修复开始。

有人可以像我 6 岁一样向我解释这一点,因为我不像这里的大多数社区那样精通计算机吗?先感谢您!!!

更新但仍然没有解决方案:我终于使用 cmd 提示符(SysWOW64 和 System32 文件夹)进入 Powershell,并且两次都尝试执行“ [System.Net.SecurityProtocolType]::Tls12 ”行并且两次都尝试重新运行pkg 构建,两次都没有工作。我需要做些什么来专门为 TLS1.2 SecurityProtocol 配置 Atom/Juno/Julia?

解决方案: 我需要 Powershell 3。我在 julia 社区帖子和链接(第一个 URL)上找到了解决方案。该解决方案由名为 Rudi79 的用户发布,然后将您带到用户 davidanthoff 发布的进一步链接(第二个 URL)。

https://discourse.julialang.org/t/problems-with-codeczlib/10124

https://github.com/JuliaLang/julia/issues/26459#issuecomment-373117374

julia> using Pkg

julia> Pkg.add("SymEngine")
  Resolving package versions...
Downloading artifact: GMP
Exception setting "SecurityProtocol": "Cannot convert null to type "System.Net.SecurityProtocolType" due to invalid enumeration values. Specify one of the 
following enumeration values and try again. The possible enumeration values are "Ssl3, Tls"."
At line:1 char:35
+ [System.Net.ServicePointManager]:: <<<< SecurityProtocol =
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyAssignmentException
 
Exception calling "DownloadFile" with "2" argument(s): "The underlying connection was closed: An unexpected error occurred on a send."
At line:7 char:24
+ $webclient.DownloadFile <<<< ("https://github.com/JuliaBinaryWrappers/GMP_jll.jl/releases/download/GMP-v6.1.2+5/GMP.v6.1.2.x86_64-w64-mingw32-cxx11.tar.g
z", "C:\Users\KGPOWER\AppData\Local\Temp\jl_u4RqYrkEd2-download.gz")
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
ERROR: Unable to automatically install 'GMP' from 'C:\Users\KGPOWER\.julia\packages\GMP_jll\AiYpf\Artifacts.toml'
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] ensure_artifact_installed(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Artifacts.jl:894
 [3] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Platform, pkg_uuid::Nothing, include_lazy::Bool, verbose::Bool, quiet_download::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Artifacts.jl:958
 [4] download_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.BinaryPlatforms.Windows, verbose::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:616
 [5] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; platform::Pkg.BinaryPlatforms.Windows, verbose::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:595
 [6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:1091
 [7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:159
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:112
 [9] #add#27 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:109 [inlined]
 [10] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:109 [inlined]
 [11] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:107 [inlined]
 [12] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:107 [inlined]
 [13] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:106
 [14] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:106
 [15] top-level scope at REPL[3]:1

julia> [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
ERROR: syntax: invalid assignment location "[SSAValue(147)]"
Stacktrace:
 [1] top-level scope at REPL[4]:1
4

0 回答 0