# Installation in Windows 10 - access is denied - how to fix?

**URL:** <https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [January 31, 2022, 10:45pm UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550 "2022-01-31T22:45:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amca01](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amca01/32/5853_2.png) [@amca01](https://discourse.julialang.org/u/amca01)\
**Post date:** [January 31, 2022, 10:45pm UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550/1 "2022-01-31T22:45:12Z")

</div>

I am in fact not new to Julia, but I am just now trying to install version 1.7.1 on a new machine with a new installation of Windows 10. I downloaded and ran the installer, which added the julia “bin” directory to the path. This meant I could open up a command prompt, type “julia” at the command - and I was away.

My first order of business was to install IJulia, which I did with `use Pkg; Pkg.install("IJulia")` and this seemed to go fine. But then I found myself not back in Julia, or in its package subsystem, but at the command prompt. And when I entered `julia` again at the prompt I was told that “Access is denied”.

I have no idea why adding IJulia should make julia inaccessible, but this seems to be what’s happened. Does anybody know how to fix this? How can I access julia again, and also install IJulia?

Thank you!

–  
When I tried in Windows PowerShell instead of the Command Prompt, I got this error message:

```julia
Program 'julia.exe' failed to run: Access is deniedAt line:1 char:1
+ julia
+ ~~~~~.
At line:1 char:1
+ julia
+ ~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
    
+ FullyQualifiedErrorId : NativeCommandFailed

```

I’m still mystified!

---

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [February 1, 2022, 6:46am UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550/2 "2022-02-01T06:46:25Z")

</div>

Does julia.exe still exist where you expect it to be ?

Do you have admin rights? Corporate Policy sometimes kicks in and ruins your day.

---

<div class="post-metadata">

**Author:** ![amca01](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amca01/32/5853_2.png) [@amca01](https://discourse.julialang.org/u/amca01)\
**Post date:** [February 1, 2022, 8:06am UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550/3 "2022-02-01T08:06:28Z")

</div>

Thanks for your reply! Yes indeed julia.exe is in the same place, which is in my path, and I’ve checked its folder tree, and all of them have user read/write access (well, I just went with the default, which installs julia in the user’s home directory).

Curiously enough, after a while it seems to come good again; that is, when I choose “Julia 1.7.1” in my start menu I get a command window containing the julia REPL. However - if I attempt to install IJulia, I wreck it and it becomes unusable. Anyway, I’ve just checked with `Pkg.status()` and it seems that IJulia is installed, and when I attempted `Pkg.build("IJulia")` it didn’t complain. So I’m going to tentatively assumed I’ve crossed that particular bridge…

Thank you again!

---

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [February 1, 2022, 8:25am UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550/4 "2022-02-01T08:25:18Z")

</div>

![work_done](https://global.discourse-cdn.com/julialang/original/3X/f/c/fc3f4e53780637d49e75572d1ab5a935301063f6.png)

---

<div class="post-metadata">

**Author:** ![amca01](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amca01/32/5853_2.png) [@amca01](https://discourse.julialang.org/u/amca01)\
**Post date:** [February 1, 2022, 9:42am UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550/5 "2022-02-01T09:42:21Z")

</div>

I’m convinced that the very act of my asking a question, and somebody answering - even if I’ve already solved my own problem - is essential. So don’t imagine you did nothing! You probably jogged the universe’s elbow in some way, so enabling me to move forward…

---

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [February 1, 2022, 9:56am UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550/6 "2022-02-01T09:56:31Z")

</div>

I’m happy to be your rubber duckie

> **[Rubber Duck Debugging](https://rubberduckdebugging.com/)**
>
> Debugging software with a rubber ducky

---

<div class="post-metadata">

**Author:** ![amca01](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amca01/32/5853_2.png) [@amca01](https://discourse.julialang.org/u/amca01)\
**Post date:** [February 1, 2022, 10:12am UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550/7 "2022-02-01T10:12:57Z")

</div>

Join the queue of about half the internet…!
