I have a clean install of V1.4 and failed to add Plots package.
See the screenshot and the message below:
How can I fix this issue? Thank you very much.
julia> import Pkg
julia> Pkg.add(“Plots”)
Updating registry at C:\Users\a225\.julia\registries\General
Updating git-repo https://github.com/JuliaRegistries/General.git
Resolving package versions…
Downloading artifact: OpenSSL
Exception setting “SecurityProtocol”: “Cannot convert null to type “System.Net.
SecurityProtocolType” due to invalid enumeration values. Specify one of the fol
lowing enumeration values and try again. The possible enumeration values are “S
sl3, Tls”.”
At line:1 char:35
- [System.Net.ServicePointManager]:: <<<< SecurityProtocol =
- CategoryInfo : InvalidOperation: ( , RuntimeException
- FullyQualifiedErrorId : PropertyAssignmentException
Exception calling “DownloadFile” with “2” argument(s): “The underlying connecti
on was closed: An unexpected error occurred on a send.”
At line:7 char:24
- $webclient.DownloadFile <<<< (“https://github.com/JuliaBinaryWrappers/OpenSSL
_jll.jl/releases/download/OpenSSL-v1.1.1+2/OpenSSL.v1.1.1.x86_64-w64-mingw32.ta
r.gz”, “C:\Users\a225\AppData\Local\Temp\jl_VpC2vklRTI-download.gz”)- CategoryInfo : NotSpecified: ( , MethodInvocationException
- FullyQualifiedErrorId : DotNetMethodException
ERROR: Unable to automatically install ‘OpenSSL’ from ‘C:\Users\a225.julia\pack
ages\OpenSSL_jll\wRGmJ\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:\buildb
ot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Artifacts.jl:8
94
[3] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Plat
form, 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.Bi
naryPlatforms.Windows, verbose::Bool) at D:\buildbot\worker\package_win64\build
usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:609
[5] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; p
latform::Pkg.BinaryPlatforms.Windows, verbose::Bool) at D:\buildbot\worker\packa
ge_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:588
[6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUI
D,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows)
at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Op
erations.jl:1084
[7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Ty
pes.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows, kwargs::Base.Iterators
.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at D:\buildbot\worker\pa
ckage_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\w
orker\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\v
1.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{},NamedTu
ple{(),Tuple{}}}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdl
ib\v1.4\Pkg\src\API.jl:106
[14] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\st
dlib\v1.4\Pkg\src\API.jl:106
[15] top-level scope at REPL[2]:1