# Unable to add Plots package in V1.4

**URL:** https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610
**Category:** General Usage
**Tags:** question, package, plotting
**Created:** [April 15, 2020, 2:40am UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610 "2020-04-15T02:40:46Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![fhkm](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@fhkm](https://discourse.julialang.org/u/fhkm)
#### Post date: [April 15, 2020, 2:40am UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/1 "2020-04-15T02:40:46Z")

</div>

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.

 ![error](https://global.discourse-cdn.com/julialang/original/3X/5/1/51650ab036acdddd967064ab969529c8c6c9fc03.png)

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](http://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](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

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [April 15, 2020, 6:49am UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/2 "2020-04-15T06:49:43Z")

</div>

Welcome @fhkm !  
What Windows version do you run?

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [April 15, 2020, 7:40am UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/3 "2020-04-15T07:40:57Z")

</div>

xref: [https://stackoverflow.com/questions/61219814/julia-unable-to-add-plots-package-in-v1-4](https://stackoverflow.com/questions/61219814/julia-unable-to-add-plots-package-in-v1-4)

@fhkm: Please always cross reference your postings on different forums.

---

<div class="post-metadata">

### Author: ![fhkm](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@fhkm](https://discourse.julialang.org/u/fhkm)
#### Post date: [April 15, 2020, 7:47pm UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/4 "2020-04-15T19:47:05Z")

</div>

I use windows 7 x64.  
I have a clean install of Julia v1.4 but still have the problem.

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [April 15, 2020, 8:01pm UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/5 "2020-04-15T20:01:10Z")

</div>

> The possible enumeration values are “Ssl3, Tls

It maybe that you have to enable TLS 1.1 and 1.2 on your client:

> **[Update to enable TLS 1.1 and TLS 1.2 as default secure protocols in WinHTTP...](https://support.microsoft.com/en-us/topic/update-to-enable-tls-1-1-and-tls-1-2-as-default-secure-protocols-in-winhttp-in-windows-c4bd73d2-31d7-761e-0178-11268bb10392)**
>
> Describes an update that adds TLS 1.1 and TLS 1.2 to default security protocols in Windows Server 2012, Windows 7 SP1, and Windows Server 2008 R2 SP1.

But it would be much better to upgrade to Windows 10. Its still for free!

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [April 15, 2020, 8:05pm UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/6 "2020-04-15T20:05:28Z")

</div>

And to be sure (if you stay with Windows 7) you should upgrade your PowerShell to some  
recent version:

> **[Installing Windows PowerShell - PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell?view=powershell-7)**
>
> This article explains how to install Windows PowerShell on various versions of Windows.

---

<div class="post-metadata">

### Author: ![fhkm](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@fhkm](https://discourse.julialang.org/u/fhkm)
#### Post date: [April 15, 2020, 8:19pm UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/7 "2020-04-15T20:19:05Z")

</div>

Thanks.  
Installing the latest PowerShell will solve the problem.

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [April 15, 2020, 8:19pm UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/8 "2020-04-15T20:19:44Z")

</div>

Which one? PowerShell? TLS 1.2? Or both? Just curious for others.

---

<div class="post-metadata">

### Author: ![fhkm](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@fhkm](https://discourse.julialang.org/u/fhkm)
#### Post date: [April 15, 2020, 8:20pm UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610/9 "2020-04-15T20:20:55Z")

</div>

I installed the latest Power Shell
