# Problem using Differential Equations

**URL:** <https://discourse.julialang.org/t/problem-using-differential-equations/67348>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [August 30, 2021, 12:28pm UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348 "2021-08-30T12:28:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [August 30, 2021, 12:28pm UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/1 "2021-08-30T12:28:47Z")

</div>

Hi! 'm trying to get started with Julia for scientific computing. I’m facing a problem in importing the Differential Equations package.  
The following WARNING pops up ~~~~

 ![image](https://global.discourse-cdn.com/julialang/original/3X/6/1/61b752c95d502ea090b571285158b7472ef9502c.png)

---

<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 30, 2021, 5:04pm UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/2 "2021-08-30T17:04:29Z")

</div>

Hello and welcome. Which operating system are you using? Do you know the version of Julia you are using?

---

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [August 30, 2021, 5:31pm UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/3 "2021-08-30T17:31:23Z")

</div>

Hi! Currently I’m on windows. mad using Julia 1.5.3. Thanks for your help.

Regards

Rajarsi

---

<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 30, 2021, 6:15pm UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/4 "2021-08-30T18:15:18Z")

</div>

Hmmm. An expert will be along soon.  
I would be inclined to remove some things and start again.  
Maybe try

using Pkg  
Pkg.gc()  
Pkg.status()

What do you see?

---

<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 30, 2021, 6:42pm UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/5 "2021-08-30T18:42:23Z")

</div>

I am using 1.5.3 on Windows. I might have this wrong, but DifferentialEquations has no dependency on ModellingToolkit. I withdraw to await an expert.

---

<div class="post-metadata">

**Author:** ![Salmon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/salmon/32/22968_2.png) [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Post date:** [August 30, 2021, 7:53pm UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/6 "2021-08-30T19:53:32Z")

</div>

Probably not the expert you’re looking for, but I’ve had similar problems. I think this may occur when two Julia instances try to pre-compile the same package, though I’m not certain.  
I think in my case the problem went away after re-installing my packages You could probably try starting with

```julia
] remove DifferentialEquations
add DifferentialEquations

```

)  
If that does’nt work I’d try to re-install all packages in your environment.

---

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [August 31, 2021, 2:03am UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/7 "2021-08-31T02:03:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [August 31, 2021, 3:34am UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/8 "2021-08-31T03:34:45Z")

</div>

Well, I did that and there was no error message this time! But this time it just took around 15 minutes to even import the DifferentialEquation module, is there a way around this pre-compiling thing?

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 31, 2021, 5:42am UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/9 "2021-08-31T05:42:59Z")

</div>

Precompiling is a once-per-`using` operation of the loaded package (and its dependencies). It’s done to make use of the code from that package faster, as well as subsequent loads of that package if the version has already been compiled. It’s part of the effort to make julia code faster by compiling what’s needed _once_ instead of every time the code in question is loaded.

---

<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 31, 2021, 6:52am UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/10 "2021-08-31T06:52:49Z")

</div>

@pafloxy Good to hear you got the package installed. What work are you doing with Julia?

---

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [August 31, 2021, 7:02am UTC](https://discourse.julialang.org/t/problem-using-differential-equations/67348/11 "2021-08-31T07:02:20Z")

</div>

I’m planning to use it for my nonlinear dynamics project, which  
basically would require integrating trajectories over high dimensional  
vector fields. The reason to choose Julia is of course the  
computational speed-up, over Python or Mathematica.

Any help is welcome!

regards
