# In julia import Pkg failed to precompiling. Why and how to solve this problem?

**URL:** <https://discourse.julialang.org/t/in-julia-import-pkg-failed-to-precompiling-why-and-how-to-solve-this-problem/91108>\
**Category:** Performance\
**Tags:** question\
**Created:** [December 1, 2022, 5:12pm UTC](https://discourse.julialang.org/t/in-julia-import-pkg-failed-to-precompiling-why-and-how-to-solve-this-problem/91108 "2022-12-01T17:12:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mkoculak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkoculak/32/28310_2.png) [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Post date:** [December 1, 2022, 5:31pm UTC](https://discourse.julialang.org/t/in-julia-import-pkg-failed-to-precompiling-why-and-how-to-solve-this-problem/91108/2 "2022-12-01T17:31:21Z")

</div>

Hi,  
this behavior was observed it Julia 1.8.1 and was related to number of threads for openblas during precompilation, see for more details:

> [@Julia 1.8.1 pkg.update() crashes OS / software during precompilation phase](https://discourse.julialang.org/t/julia-1-8-1-pkg-update-crashes-os-software-during-precompilation-phase/87979):
>
> So ever since julia 1.8-rc4 I’ve had very weird issues when trying to add or update packages via the package manager. It started off with failing precompilation via LoadError when trying to add a package and has now progressed into either locking up/freezing my OS or crashing say, firefox due to random errors while Julia is attempting to precompile packages. I went so far as to wipe Julia installs and all registry info related to julia from my computer, yet the issue persists. Julia 1.7.3 which…

You can either update Julia to the newest version (1.8.3) or change the environment variable mentioned in the thread. Let us know, if that solved your issue.

---

_[View the full topic](https://discourse.julialang.org/t/in-julia-import-pkg-failed-to-precompiling-why-and-how-to-solve-this-problem/91108)._
