# IJulia install issue

**URL:** <https://discourse.julialang.org/t/ijulia-install-issue/45037>\
**Category:** New to Julia\
**Tags:** question, ijulia\
**Created:** [August 16, 2020, 11:04am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037 "2020-08-16T11:04:49Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [August 17, 2020, 8:03am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/21 "2020-08-17T08:03:10Z")

</div>

No expert here but I stumbled over something called

> powershell execution policy

Maybe thats causing troubles.

---

<div class="post-metadata">

**Author:** ![Nikesh\_Bansal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nikesh_bansal/32/12748_2.png) [@Nikesh\_Bansal](https://discourse.julialang.org/u/Nikesh_Bansal)\
**Post date:** [August 17, 2020, 8:16am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/22 "2020-08-17T08:16:17Z")

</div>

Hi @oheil, I checked the powershell execution policy. It is set as `Unrestricted` for `Local Machine`.

---

<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:** [August 17, 2020, 8:27am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/23 "2020-08-17T08:27:05Z")

</div>

What I’m wondering reading above posts is the administrator thing. There is no need to run anything as administrator. Just download and install Julia as the user you are. Everything is installed per default in your users home, this is for Julia 1.5 in Windows in  
`C:\Users\UserName\AppData\Local\Programs\Julia\`  
for the Julia installation and  
`C:\Users\UserName\.julia`  
for all packages and dependencies.  
So no need for elevated rights.

---

<div class="post-metadata">

**Author:** ![derekmahar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/derekmahar/32/216439_2.png) [@derekmahar](https://discourse.julialang.org/u/derekmahar)\
**Post date:** [August 17, 2020, 8:53am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/24 "2020-08-17T08:53:50Z")

</div>

Chocolatey installed Julia 1.5.0 in my home directory, too. I believe it installs the standard Windows binary distribution. I run Chocolatey as administrator, but like @oheil said, Chocolatey could install Julia as a regular user.

```julia
PS C:\Users\derek> choco install julia --yes --force
Chocolatey v0.10.15
Installing the following packages:
julia
By installing you accept licenses for the packages.
Progress: Downloading Julia 1.5.0... 100%

Julia v1.5.0 (forced) [Approved]
julia package files install completed. Performing other installation steps.
Installing 64-bit Julia...
Julia has been installed.
Julia installed to 'C:\Users\derek\AppData\Local\Programs\Julia 1.5.0\bin\julia.exe'
Added C:\ProgramData\chocolatey\bin\julia.exe shim pointed to 'c:\users\derek\appdata\local\programs\julia 1.5.0\bin\julia.exe'.
 The install of julia was successful.
  Software installed to 'C:\Users\derek\AppData\Local\Programs\Julia 1.5.0\'

Chocolatey installed 1/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

```

---

<div class="post-metadata">

**Author:** ![derekmahar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/derekmahar/32/216439_2.png) [@derekmahar](https://discourse.julialang.org/u/derekmahar)\
**Post date:** [August 17, 2020, 9:03am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/25 "2020-08-17T09:03:59Z")

</div>

I also noticed that despite running Chocolatey as administrator, in addition to SYSTEM and Administrators, Chocolatey (or Windows) granted me full control of the files in `C:\Users\derek\AppData` which includes the Julia binaries. So in Windows, at least by default, Julia binaries are completely local to the user.

---

<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:** [August 17, 2020, 9:14am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/26 "2020-08-17T09:14:03Z")

</div>

Can you start a powershell and give us the output of

```julia
(Get-Host).Version

```

for me it looks like:

```julia
PS C:\Users\User> (Get-Host).Version

Major Minor Build Revision
----- ----- ----- --------
5 1 19041 1

PS C:\Users\User>

```

---

<div class="post-metadata">

**Author:** ![Nikesh\_Bansal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nikesh_bansal/32/12748_2.png) [@Nikesh\_Bansal](https://discourse.julialang.org/u/Nikesh_Bansal)\
**Post date:** [August 17, 2020, 9:21am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/27 "2020-08-17T09:21:09Z")

</div>

This is the result.

```julia
Major Minor Build Revision
----- ----- ----- --------
5 1 18362 752

```

---

<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:** [August 17, 2020, 10:57am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/28 "2020-08-17T10:57:25Z")

</div>

I did some tests (user with space, using chocolatey) without success (means I couldn’t reproduce this issue).  
The last idea (for me):  
Could you check for  
`DefaultSecureProtocols`  
the registry entries:

```julia
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp

```

check for  
`SecureProtocols`  
in

```julia
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings

```

Source:

> **[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.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [August 17, 2020, 11:11am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/29 "2020-08-17T11:11:26Z")

</div>

Hi @Nikesh_Bansal My apology for not replying yesterday.  
I have been using Julia for a long time on Windows 10.  
I really, really advise anyone to use the Chocolatey package manager on Windows.

Are you still having problems?

---

<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:** [August 17, 2020, 11:18am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/30 "2020-08-17T11:18:38Z")

</div>

I did this in my tests and found an issue with this chocolatey approach:

If your own user account (say "user) is not privileged you have to run powershell as another privileged user (e.g “admin”). Julia is than installed in the home of “admin” and not in “user” and therefor not directly accessible for “user”.

In general I never had any issue with just downloading the installer from

> **[Download Julia](https://julialang.org/downloads/)**
>
> The official website for the Julia Language. Julia is a language that is fast, dynamic, easy to use, and open source. Click here to learn more.

install and run as current user without any admin rights.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [August 17, 2020, 11:23am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/31 "2020-08-17T11:23:44Z")

</div>

Hmm. I start Powershell with Admin privileges. USe choco install julia  
Then my Julia 1.5.0 is here:  
C:\Users\john\_hearns\AppData\Local\Programs\Julia 1.5.0\bin\julia.exe

I wonder how we can figure out what is happening here? Short of taking off and nuking Windows from orbit

---

<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:** [August 17, 2020, 11:31am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/32 "2020-08-17T11:31:50Z")

</div>

> [@johnh](#):
>
> I start Powershell with Admin privileges.

This is, e.g., typically not possible in a corporate environment where the normal user doesn’t have admin privileges, so privileges can’t be escalated via UAC (User Account Control). Another admin user with privileges must be used for installation via chocolatey with the described problem.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [August 17, 2020, 11:31am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/33 "2020-08-17T11:31:52Z")

</div>

Worth notiing that in my Powershell I am acting as my own account  
PS C:\users\> whoami  
europe\john\_hearns

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [August 17, 2020, 11:32am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/34 "2020-08-17T11:32:45Z")

</div>

That might be the difference then. I am in a corporate environment, but I have local admin rights to my laptop. We can request this and it is generally given to engineers.

---

<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:** [August 17, 2020, 11:37am UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/35 "2020-08-17T11:37:50Z")

</div>

I don’t know if OP has used chocolatey. I think it was @derekmahar who brought this in.  
chocolatey is probably not the issue here as OP was running Julia as admin. I just tested with chocolatey to make sure this isn’t the issue.

So, if nothing new comes into mind, I would focus again on my last suspect (TLS) checking the TLS1.2 registry entries above.

---

<div class="post-metadata">

**Author:** ![Nikesh\_Bansal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nikesh_bansal/32/12748_2.png) [@Nikesh\_Bansal](https://discourse.julialang.org/u/Nikesh_Bansal)\
**Post date:** [August 17, 2020, 2:17pm UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/36 "2020-08-17T14:17:07Z")

</div>

Thank you @oheil and @johnh for your suggestions. Let me clear few things.  
Initially, I installed Julia without admin privileges and there was this error. So, I tried to delete it and re-install with admin privileges to see if that helps. But the result was the same. I do not believe the admin rights is the issue here.  
Next thing, I am not using chocolatey package manager as of now. But I can give a try if that helps.  
Lastly, I looked for the registry entries and I found the following values:  
There is no `DefaultSecureProtocols` in registry entries, there is only `(Default)` in which there is no value.  
For `SecureProtocols`, the value is `a80` in HKEY\_CURRENT\_USER but there is no `SecureProtocols` in HKEY\_LOCAL\_MACHINE.

---

<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:** [August 17, 2020, 2:22pm UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/37 "2020-08-17T14:22:52Z")

</div>

I think for the registry, thats how it should be for Windows 10.  
My fantasy is now depleted.

---

<div class="post-metadata">

**Author:** ![derekmahar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/derekmahar/32/216439_2.png) [@derekmahar](https://discourse.julialang.org/u/derekmahar)\
**Post date:** [August 17, 2020, 2:29pm UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/38 "2020-08-17T14:29:40Z")

</div>

Chocolatey was not relevant to my point. I was only confirming your point that the Julia Windows installer installs Julia and packages to the user directory and so need not run as the administrator. I mentioned Chocolatey simply because that’s the tool that I used to run the Julia Windows installer.

---

<div class="post-metadata">

**Author:** ![Nikesh\_Bansal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nikesh_bansal/32/12748_2.png) [@Nikesh\_Bansal](https://discourse.julialang.org/u/Nikesh_Bansal)\
**Post date:** [August 17, 2020, 2:32pm UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/39 "2020-08-17T14:32:52Z")

</div>

@oheil, Thank you for your help anyways, hopefully I will solve this issue soon.

@derekmahar Thank you for clarifying about chocolatey.

@johnh I just tried installing Julia with chocolatey as well. Julia works fine in REPL (as before) but the issue with installing IJulia still remains unsolved.

---

<div class="post-metadata">

**Author:** ![derekmahar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/derekmahar/32/216439_2.png) [@derekmahar](https://discourse.julialang.org/u/derekmahar)\
**Post date:** [August 17, 2020, 2:34pm UTC](https://discourse.julialang.org/t/ijulia-install-issue/45037/40 "2020-08-17T14:34:58Z")

</div>

I agree that administrative privileges may not be the issue and I doubt that using Chocolatey will help. Does the Julia installer create a log? This might give more clues about why the installation fails.

[Previous page](https://discourse.julialang.org/t/ijulia-install-issue/45037.md?page=1)

[Next page](https://discourse.julialang.org/t/ijulia-install-issue/45037.md?page=3)
