# How to solve the problem of julia loading Moesk?

**URL:** <https://discourse.julialang.org/t/how-to-solve-the-problem-of-julia-loading-moesk/85467>\
**Category:** Optimization (Mathematical)\
**Created:** [August 8, 2022, 10:38am UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-of-julia-loading-moesk/85467 "2022-08-08T10:38:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sand\_feifsndali](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sand_feifsndali/32/38629_2.png) [@sand\_feifsndali](https://discourse.julialang.org/u/sand_feifsndali)\
**Post date:** [August 8, 2022, 10:38am UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-of-julia-loading-moesk/85467/1 "2022-08-08T10:38:26Z")

</div>

Downloaded a MosekTools, but when using MosekTools, it will ask to build (“Mosek”), and there are various problems when building, as shown in the figure

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/c/1ced914f7d5f61425bb63035a07b8e75a38dd646.png)  
How to solve this problem, do I need to download a moesk software?

---

<div class="post-metadata">

**Author:** ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Post date:** [August 8, 2022, 1:07pm UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-of-julia-loading-moesk/85467/2 "2022-08-08T13:07:15Z")

</div>

Hi!

This seems to be an issue of PowerShell blocking the download script from running.

Before starting Julia, you can run this command:

```nohighlight
PS> Unblock-File -Path C:\Users\30313\.julia\packages\Mosek\3NJdY\deps\winget.ps1

```

and then start Julia and try the `Pkg.build` again. This allows the download script from Mosek.jl to run, which should prevent this error.

(If for some reason you still get an error, you can also try:

```nohighlight
PS> Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process

```

before starting Julia.)

---

<div class="post-metadata">

**Author:** ![sand\_feifsndali](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sand_feifsndali/32/38629_2.png) [@sand\_feifsndali](https://discourse.julialang.org/u/sand_feifsndali)\
**Post date:** [August 12, 2022, 3:13am UTC](https://discourse.julialang.org/t/how-to-solve-the-problem-of-julia-loading-moesk/85467/4 "2022-08-12T03:13:23Z")

</div>

Thank you for your reply!  
Since I’m just getting started, I don’t quite understand your solution, but I solved the problem with another solution.  
I downloaded a Mosek software which automatically configures the environment variables and after getting the license I successfully used Mosektooks in Julia and got the results.
