# Error 'No such file or directory'

**URL:** <https://discourse.julialang.org/t/error-no-such-file-or-directory/37168>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [April 7, 2020, 1:40pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168 "2020-04-07T13:40:38Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![beep](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@beep](https://discourse.julialang.org/u/beep)\
**Post date:** [April 7, 2020, 1:40pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/1 "2020-04-07T13:40:38Z")

</div>

Hi,

This is my very first time using Julia. I tried to add the IJulia package but got this error message:

```julia
(v1.3) pkg> add IJulia
   Cloning default registries into `C:\Users\name\.julia`
   Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: SystemError: opening file "C:\\Users\\name\\.julia\\registries\\General\\Registry.toml": No such file or directory

```

Any help would be much appreciated 🙂

---

<div class="post-metadata">

**Author:** ![zekeriya.sari](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zekeriya.sari/32/13695_2.png) [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Post date:** [April 7, 2020, 1:51pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/2 "2020-04-07T13:51:22Z")

</div>

As the error says, “C:\Users\name\.julia\registries\General\Registry.toml” file cannot be found.

As the directory “C:\Users\name\.julia\registries\General” is a git directory, you should just try `git pull` in that directory.

---

<div class="post-metadata">

**Author:** ![beep](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@beep](https://discourse.julialang.org/u/beep)\
**Post date:** [April 7, 2020, 1:53pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/3 "2020-04-07T13:53:25Z")

</div>

Thanks! As I am really new to Julia, how would I go about doing that?

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [April 7, 2020, 1:57pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/4 "2020-04-07T13:57:50Z")

</div>

Hm, you shouldn’t need to be running `git` operations manually (and your machine probably doesn’t even have `git` installed). While you certainly _can_ go down that road, it might be more productive to figure out what went wrong in the first place.

How are you using Julia? That is, did you install just Julia or did you download JuliaPro?

You can also try removing the folder `C:\Users\name\.julia` and trying again.

---

<div class="post-metadata">

**Author:** ![beep](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@beep](https://discourse.julialang.org/u/beep)\
**Post date:** [April 7, 2020, 2:02pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/5 "2020-04-07T14:02:22Z")

</div>

Thank you, I just tried to delete the folder but I’m still getting the same error message. Perhaps I’m deleting it wrong? (i was using the command prompt on windows).

I think I installed just Julia, not JuliaPro 😕

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [April 7, 2020, 2:06pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/6 "2020-04-07T14:06:59Z")

</div>

It’s fine that you’re not using JuliaPro (it makes debugging this a bit simpler). How exactly did you install Julia, and what do you get when you run `versioninfo()` in Julia?

---

<div class="post-metadata">

**Author:** ![beep](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@beep](https://discourse.julialang.org/u/beep)\
**Post date:** [April 7, 2020, 2:09pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/7 "2020-04-07T14:09:33Z")

</div>

This is what I get when I run `versioninfo()`:

```julia
julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-1035G4 CPU @ 1.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, cannonlake)

```

I can’t really remember how I installed Julia as it was a while ago unfortunately ☹

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [April 7, 2020, 2:13pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/8 "2020-04-07T14:13:53Z")

</div>

Ok, I’d suggest starting from a clean slate. Delete `.julia`, download Julia 1.4 from [Download Julia](https://julialang.org/downloads/) and try again. If that still doesn’t work, then there is something particularly weird with your setup.

Are you on a corporate machine, by the way? I wonder if maybe you have some weird firewall or antivirus system that is causing problems.

---

<div class="post-metadata">

**Author:** ![beep](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@beep](https://discourse.julialang.org/u/beep)\
**Post date:** [April 7, 2020, 2:23pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/9 "2020-04-07T14:23:55Z")

</div>

Thanks for your advice! I tried it and it still didn’t work :((((  
I’m just using a personal device so I guess something is really weird 😕

---

<div class="post-metadata">

**Author:** ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Post date:** [April 7, 2020, 3:06pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/10 "2020-04-07T15:06:25Z")

</div>

It’s strange since it’s a personal device and you should be admin. I had similar issues in the past on a corporate computer and had to start Julia as admin. Also if you have Avast antivirus, make sure you disable it for a while, it likes to quarantine stuff (had problems with it when setting up Juno/Atom).  
So my suggestions are:  
Disable antivirus, delete again .julia folder, start Julia as admin and first try something simple such as `]update`. This should just download registries and a few more stuff in .julia folder (created automatically).

---

<div class="post-metadata">

**Author:** ![Ishan\_Banerjee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ishan_banerjee/32/18458_2.png) [@Ishan\_Banerjee](https://discourse.julialang.org/u/Ishan_Banerjee)\
**Post date:** [October 6, 2020, 4:36am UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/11 "2020-10-06T04:36:21Z")

</div>

I had the same problem. Deleted Avast and now it is working. Thank you Lilian!

---

<div class="post-metadata">

**Author:** ![Shashank\_Bhat\_G\_S](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shashank_bhat_g_s/32/20960_2.png) [@Shashank\_Bhat\_G\_S](https://discourse.julialang.org/u/Shashank_Bhat_G_S)\
**Post date:** [January 13, 2021, 3:16pm UTC](https://discourse.julialang.org/t/error-no-such-file-or-directory/37168/12 "2021-01-13T15:16:02Z")

</div>

I came across the same issue initially  
First, I would recommend you to add Julia to PATH on Windows 10/ mac. (I’ll attach a picture for more info or you can view it on the download page of Julia)

 ![Screenshot 2021-01-13 203110](https://global.discourse-cdn.com/julialang/original/3X/9/6/96cb68e7343c7103f5b4ce1513fa43d30be6be56.png)

once you complete doing that go to [C drive] → [Users] --\>[username] → and there you’ll find the Julia folder. Delete the folder and then go to Julia terminal followed by the usual steps  
( ] then … add IJulia )  
This should resolve your problem. I faced the same issue and now after these steps, I was able to successfully install all the packages.
