# Access denied when adding package

**URL:** <https://discourse.julialang.org/t/access-denied-when-adding-package/83273>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 23, 2022, 7:13pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273 "2022-06-23T19:13:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![luhuh](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@luhuh](https://discourse.julialang.org/u/luhuh)\
**Post date:** [June 23, 2022, 7:13pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/1 "2022-06-23T19:13:24Z")

</div>

Hello everyone! I’ve been having some trouble adding and building the JuMP and Clp packages on my Julia (but I got IJulia to be added and installed). The problem comes when I do Pkg.add(“JuMP”) or Pkg.add(“Clp”). The error I get when doing JuMP is: Unable to automatically install ‘Bzip2’. I get an error higher up that says “Access is denied”. For Clp, I get: Unable to automatically install ‘Clp’ with the same “Access is denied” higher up in the terminal.

Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [June 23, 2022, 7:37pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/2 "2022-06-23T19:37:51Z")

</div>

What machine is this on? And how did you install Julia?

It is it a work or school computer for which you need permission to install other software?

What is the output of `versioninfo()`?

---

<div class="post-metadata">

**Author:** ![luhuh](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@luhuh](https://discourse.julialang.org/u/luhuh)\
**Post date:** [June 23, 2022, 7:56pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/3 "2022-06-23T19:56:20Z")

</div>

This is on my personal computer but I downloaded Julia for school purposes. Its a windows computer and I just installed 1.7.3 from the download website.

Output of versioninfo():  
Julia Version 1.7.3  
Commit 742b9abb4d (2022-05-06 12:58 UTC)  
Platform Info:  
OS: Windows (x86\_64-w64-mingw32)  
CPU: Intel(R) Core™ i5-8250U CPU @ 1.60GHz  
WORD\_SIZE: 64  
LIBM: libopenlibm  
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [June 23, 2022, 9:10pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/4 "2022-06-23T21:10:58Z")

</div>

What is the full error message?

---

<div class="post-metadata">

**Author:** ![luhuh](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@luhuh](https://discourse.julialang.org/u/luhuh)\
**Post date:** [June 23, 2022, 9:41pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/5 "2022-06-23T21:41:50Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/0/0/0063d598942939552c9480646ff9af68fcf14ea3.png)

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [June 23, 2022, 9:48pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/6 "2022-06-23T21:48:03Z")

</div>

How did you install and start Julia? Did you install it as local admin and then try running it as your current user?

It looks like it’s trying to say things in the system temp folder, instead of under your user account in `%localappdata%`.

p.s., this isn’t related JuMP or Clp, so I’ve moved the question back to the General usage category

---

<div class="post-metadata">

**Author:** ![luhuh](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@luhuh](https://discourse.julialang.org/u/luhuh)\
**Post date:** [June 24, 2022, 12:02am UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/7 "2022-06-24T00:02:22Z")

</div>

I believe I installed it as the current user (which should be the admin on the computer) and ran it as the current user. I just ran it as an admin and now I got a different error:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/3/e/3ec952c50ea513aeac09a1a000f7a27aaaaeccd3.png)

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [June 24, 2022, 4:03am UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/8 "2022-06-24T04:03:01Z")

</div>

I don’t know why you don’t have access to `C:\WINDOWS\TEMP`. You can check the permissions by navigating to it in the file explorer, then right click properties and then “Security”.

Otherwise try re-installing Julia and make sure you install it under your local user account.

---

<div class="post-metadata">

**Author:** ![luhuh](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@luhuh](https://discourse.julialang.org/u/luhuh)\
**Post date:** [June 24, 2022, 1:20pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/9 "2022-06-24T13:20:14Z")

</div>

It seems to have full access already when I check the properties. I’ve tried re-installing Julia a couple times yesterday and had no luck. For the time being, I installed WSL and I’m running Julia on Ubuntu with relative ease.

---

<div class="post-metadata">

**Author:** ![MaxSties](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@MaxSties](https://discourse.julialang.org/u/MaxSties)\
**Post date:** [November 22, 2022, 8:49pm UTC](https://discourse.julialang.org/t/access-denied-when-adding-package/83273/10 "2022-11-22T20:49:41Z")

</div>

Where you ever able to figure this out? I have the same similar problem.  
When I try to add a package (on a work pc), something changes my permission to ‘access denied’ for the folder the Julia executable is in.
