# Julia Dependencies for PYSR

**URL:** <https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927>\
**Category:** New to Julia\
**Tags:** question, package\
**Created:** [November 8, 2023, 4:53am UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927 "2023-11-08T04:53:25Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![Maria\_Pintos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_pintos/32/206878_2.png) [@Maria\_Pintos](https://discourse.julialang.org/u/Maria_Pintos)\
**Post date:** [February 8, 2024, 1:59pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/21 "2024-02-08T13:59:31Z")

</div>

Precompiling project…  
✗ SpecialFunctions  
✗ LoopVectorization → SpecialFunctionsExt  
✗ ForwardDiff  
✗ NLSolversBase  
✗ LineSearches  
✗ Optim  
✗ SymbolicRegression  
0 dependencies successfully precompiled in 25 seconds. 75 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

SymbolicRegression [8254be44-1295-4e6a-a16d-46603ac705cb]

Failed to precompile SymbolicRegression [8254be44-1295-4e6a-a16d-46603ac705cb] to “C:\Users\81080758\.julia\compiled\v1.10\SymbolicRegression\jl\_CCF2.tmp”.  
ERROR: LoadError: InitError: could not load library “C:\Users\81080758.julia\artifacts\3e683ec5ca945a5aca74c49e8cccdf37c19b84a3\bin\libopenspecfun.dll”  
Access is denied.  
Stacktrace:  
[1] dlopen(s::String, flags::UInt32; throw\_error::Bool)  
@ Base.Libc.Libdl .\libdl.jl:117  
[2] dlopen(s::String, flags::UInt32)  
@ Base.Libc.Libdl .\libdl.jl:116  
[3] macro expansion  
@ C:\Users\81080758.julia\packages\JLLWrappers\pG9bm\src\products\library\_generators.jl:63 [inlined]  
[4] **init** ()  
@ OpenSpecFun\_jll C:\Users\81080758.julia\packages\OpenSpecFun\_jll\1Zaof\src\wrappers\x86\_64-w64-mingw32-libgfortran5.jl:9  
[5] run\_module\_init(mod::Module, i::Int64)  
@ Base .\loading.jl:1128  
[6] register\_restored\_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)  
@ Base .\loading.jl:1116  
[7] \_include\_from\_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})  
@ Base .\loading.jl:1061  
[8] \_require\_search\_from\_serialized(pkg::Base.PkgId, sourcepath::String, build\_id::UInt128)  
@ Base .\loading.jl:1575  
[9] \_require(pkg::Base.PkgId, env::String)  
@ Base .\loading.jl:1932  
[10] \_\_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1806  
[11] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[12] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[13] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1797  
[14] macro expansion  
@ Base .\loading.jl:1784 [inlined]  
[15] macro expansion  
@ Base .\lock.jl:267 [inlined]  
[16] \_\_require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1747  
[17] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[18] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[19] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1740  
[20] include  
@ Base .\Base.jl:495 [inlined]  
[21] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)  
@ Base .\loading.jl:2216  
[22] top-level scope  
@ stdin:3  
during initialization of module OpenSpecFun\_jll  
in expression starting at C:\Users\81080758.julia\packages\SpecialFunctions\QH8rV\src\SpecialFunctions.jl:1  
in expression starting at stdin:3  
ERROR: LoadError: Failed to precompile SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] to “C:\Users\81080758\.julia\compiled\v1.10\SpecialFunctions\jl\_D723.tmp”.  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, keep\_loaded\_modules::Bool)  
@ Base .\loading.jl:2462  
[3] compilecache  
@ Base .\loading.jl:2334 [inlined]  
[4] (::Base.var"#968#969"{Base.PkgId})()  
@ Base .\loading.jl:1968  
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale\_age::Int64, wait::Bool})  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93  
[6] #mkpidlock#6  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]  
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale\_age::Int64})  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111  
[8] #invokelatest#2  
@ Base .\essentials.jl:889 [inlined]  
[9] invokelatest  
@ Base .\essentials.jl:884 [inlined]  
[10] maybe\_cachefile\_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale\_age::Int64)  
@ Base .\loading.jl:2977  
[11] maybe\_cachefile\_lock  
@ Base .\loading.jl:2974 [inlined]  
[12] \_require(pkg::Base.PkgId, env::String)  
@ Base .\loading.jl:1964  
[13] \_\_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1806  
[14] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[15] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[16] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1797  
[17] macro expansion  
@ Base .\loading.jl:1784 [inlined]  
[18] macro expansion  
@ Base .\lock.jl:267 [inlined]  
[19] \_\_require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1747  
[20] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[21] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[22] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1740  
[23] include  
@ Base .\Base.jl:495 [inlined]  
[24] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)  
@ Base .\loading.jl:2216  
[25] top-level scope  
@ stdin:3  
in expression starting at C:\Users\81080758.julia\packages\ForwardDiff\PcZ48\src\ForwardDiff.jl:1  
in expression starting at stdin:3  
ERROR: LoadError: Failed to precompile ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] to “C:\Users\81080758\.julia\compiled\v1.10\ForwardDiff\jl\_D54E.tmp”.  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, keep\_loaded\_modules::Bool)  
@ Base .\loading.jl:2462  
[3] compilecache  
@ Base .\loading.jl:2334 [inlined]  
[4] (::Base.var"#968#969"{Base.PkgId})()  
@ Base .\loading.jl:1968  
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale\_age::Int64, wait::Bool})  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93  
[6] #mkpidlock#6  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]  
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale\_age::Int64})  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111  
[8] #invokelatest#2  
@ Base .\essentials.jl:889 [inlined]  
[9] invokelatest  
@ Base .\essentials.jl:884 [inlined]  
[10] maybe\_cachefile\_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale\_age::Int64)  
@ Base .\loading.jl:2977  
[11] maybe\_cachefile\_lock  
@ Base .\loading.jl:2974 [inlined]  
[12] \_require(pkg::Base.PkgId, env::String)  
@ Base .\loading.jl:1964  
[13] \_\_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1806  
[14] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[15] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[16] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1797  
[17] macro expansion  
@ Base .\loading.jl:1784 [inlined]  
[18] macro expansion  
@ Base .\lock.jl:267 [inlined]  
[19] \_\_require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1747  
[20] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[21] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[22] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1740  
[23] include  
@ Base .\Base.jl:495 [inlined]  
[24] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)  
@ Base .\loading.jl:2216  
[25] top-level scope  
@ stdin:3  
in expression starting at C:\Users\81080758.julia\packages\NLSolversBase\kavn7\src\NLSolversBase.jl:3  
in expression starting at stdin:3  
ERROR: LoadError: Failed to precompile NLSolversBase [d41bc354-129a-5804-8e4c-c37616107c6c] to “C:\Users\81080758\.julia\compiled\v1.10\NLSolversBase\jl\_D2FC.tmp”.  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, keep\_loaded\_modules::Bool)  
@ Base .\loading.jl:2462  
[3] compilecache  
@ Base .\loading.jl:2334 [inlined]  
[4] (::Base.var"#968#969"{Base.PkgId})()  
@ Base .\loading.jl:1968  
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale\_age::Int64, wait::Bool})  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93  
[6] #mkpidlock#6  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]  
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale\_age::Int64})  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111  
[8] #invokelatest#2  
@ Base .\essentials.jl:889 [inlined]  
[9] invokelatest  
@ Base .\essentials.jl:884 [inlined]  
[10] maybe\_cachefile\_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale\_age::Int64)  
@ Base .\loading.jl:2977  
[11] maybe\_cachefile\_lock  
@ Base .\loading.jl:2974 [inlined]  
[12] \_require(pkg::Base.PkgId, env::String)  
@ Base .\loading.jl:1964  
[13] \_\_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1806  
[14] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[15] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[16] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1797  
[17] macro expansion  
@ Base .\loading.jl:1784 [inlined]  
[18] macro expansion  
@ Base .\lock.jl:267 [inlined]  
[19] \_\_require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1747  
[20] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[21] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[22] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1740  
[23] include  
@ Base .\Base.jl:495 [inlined]  
[24] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)  
@ Base .\loading.jl:2216  
[25] top-level scope  
@ stdin:3  
in expression starting at C:\Users\81080758.julia\packages\Optim\dBGGV\src\Optim.jl:1  
in expression starting at stdin:3  
ERROR: LoadError: Failed to precompile Optim [429524aa-4258-5aef-a3af-852621145aeb] to “C:\Users\81080758\.julia\compiled\v1.10\Optim\jl\_D222.tmp”.  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, keep\_loaded\_modules::Bool)  
@ Base .\loading.jl:2462  
[3] compilecache  
@ Base .\loading.jl:2334 [inlined]  
[4] (::Base.var"#968#969"{Base.PkgId})()  
@ Base .\loading.jl:1968  
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale\_age::Int64, wait::Bool})  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93  
[6] #mkpidlock#6  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]  
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale\_age::Int64})  
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111  
[8] #invokelatest#2  
@ Base .\essentials.jl:889 [inlined]  
[9] invokelatest  
@ Base .\essentials.jl:884 [inlined]  
[10] maybe\_cachefile\_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale\_age::Int64)  
@ Base .\loading.jl:2977  
[11] maybe\_cachefile\_lock  
@ Base .\loading.jl:2974 [inlined]  
[12] \_require(pkg::Base.PkgId, env::String)  
@ Base .\loading.jl:1964  
[13] \_\_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1806  
[14] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[15] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[16] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1797  
[17] macro expansion  
@ Base .\loading.jl:1784 [inlined]  
[18] macro expansion  
@ Base .\lock.jl:267 [inlined]  
[19] \_\_require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1747  
[20] #invoke\_in\_world#3  
@ Base .\essentials.jl:921 [inlined]  
[21] invoke\_in\_world  
@ Base .\essentials.jl:918 [inlined]  
[22] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1740  
[23] include(mod::Module, \_path::String)  
@ Base .\Base.jl:495  
[24] include(x::String)  
@ SymbolicRegression.CoreModule C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\Core.jl:1  
[25] top-level scope  
@ C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\Core.jl:6  
[26] include(mod::Module, \_path::String)  
@ Base .\Base.jl:495  
[27] include(x::String)  
@ SymbolicRegression C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\SymbolicRegression.jl:1  
[28] top-level scope  
@ C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\SymbolicRegression.jl:142  
[29] include  
@ Base .\Base.jl:495 [inlined]  
[30] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)  
@ Base .\loading.jl:2216  
[31] top-level scope  
@ stdin:3  
in expression starting at C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\OptionsStruct.jl:1  
in expression starting at C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\Core.jl:1  
in expression starting at C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\SymbolicRegression.jl:1  
in expression starting at stdin:

---

<div class="post-metadata">

**Author:** ![Maria\_Pintos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_pintos/32/206878_2.png) [@Maria\_Pintos](https://discourse.julialang.org/u/Maria_Pintos)\
**Post date:** [February 8, 2024, 2:00pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/22 "2024-02-08T14:00:20Z")

</div>

I installed Julia using the Windows Installer

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [February 8, 2024, 2:22pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/23 "2024-02-08T14:22:53Z")

</div>

> [@Maria\_Pintos](#):
>
> ERROR: LoadError: InitError: could not load library “C:\Users\81080758.julia\artifacts\3e683ec5ca945a5aca74c49e8cccdf37c19b84a3\bin\libopenspecfun.dll”  
> Access is denied.

That line is particularly confusing. Can you access that location?

Are there any any particularly tight security restrictions on this computer?

I suppose we could try to download the artifact again. It may involve renaming this folder.

“C:\Users\81080758.julia\artifacts\3e683ec5ca945a5aca74c49e8cccdf37c19b84a3”

You could also rename the `.julia` folder and try to install everything again.

---

<div class="post-metadata">

**Author:** ![Maria\_Pintos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_pintos/32/206878_2.png) [@Maria\_Pintos](https://discourse.julialang.org/u/Maria_Pintos)\
**Post date:** [February 8, 2024, 2:32pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/24 "2024-02-08T14:32:09Z")

</div>

would you recommend uninstalling Julia and trying to reinstall? are there any specific steps that you would recommend for the installation? thank you

---

<div class="post-metadata">

**Author:** ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Post date:** [February 8, 2024, 2:38pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/25 "2024-02-08T14:38:00Z")

</div>

@Maria_Pintos One option is to try the new PythonCall.jl version of PySR which automatically installs julia and all the dependencies.

It’s not released yet but you install the current version with:

```bash
pip install -U git+https://github.com/MilesCranmer/PySR.git@06aebb6b587f8c811723710f8193a5086778b3ad

```

then just

```python
import pysr

```

will automatically set up everything.

---

<div class="post-metadata">

**Author:** ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Post date:** [February 8, 2024, 2:39pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/26 "2024-02-08T14:39:33Z")

</div>

But I would also concur that the permission issues you are seeing are probably best solved by uninstalling Julia.

1. Uninstall Julia completely.
2. Try installing the development version of pysr I pasted above. It will automatically install a compatible Julia for you.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [February 8, 2024, 2:57pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/27 "2024-02-08T14:57:08Z")

</div>

I’m not sure what uninstalling Julia would do since the access issue is in the .julia folder. Renaming the .julia folder should be effectively starting again as far as the error that we see.

If you only reinstalled Julia, it probably would not help the proximal issue.

If you do reinstall Julia, do so from the Microsoft Store if possible.

> **[Julia - Official app in the Microsoft Store](https://apps.microsoft.com/detail/9NJNWW8PVKMN?hl=en-US&gl=US)**
>
> Julia is a high-level, high-performance, dynamic, open-source programming language.

---

<div class="post-metadata">

**Author:** ![Maria\_Pintos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_pintos/32/206878_2.png) [@Maria\_Pintos](https://discourse.julialang.org/u/Maria_Pintos)\
**Post date:** [February 8, 2024, 3:46pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/28 "2024-02-08T15:46:11Z")

</div>

I successfully uninstalled Julia, and pip installed the current version of PythonCall.jl succesfully as well. Once this was done, I tried to run import pysr and got

Installing known registries into `C:\Users\81080758\.julia`  
Cloning git-repo `https://github.com/MilesCranmer/SymbolicRegression.jl`  
ERROR: failed to clone from [GitHub - MilesCranmer/SymbolicRegression.jl: Distributed High-Performance Symbolic Regression in Julia](https://github.com/MilesCranmer/SymbolicRegression.jl), error: GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn’t know how to configure to use a file or directory of  
certificate authority roots, but your environment specifies one via the SSL\_CERT\_FILE variable. If you believe your system’s root certificates are safe to use, you can `export JULIA_SSL_CA_ROOTS_PATH=""` in your environment to use those  
instead.)  
Stacktrace:  
[1] pkgerror(msg::String)  
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:70  
[2] clone(io::Base.TTY, url::String, source\_path::String; header::Nothing, credentials::Nothing, kwargs::@Kwargs{isbare::Bool})  
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:132  
[3] clone  
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:88 [inlined]  
[4] #ensure\_clone#2  
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:74 [inlined]  
[5] handle\_repo\_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)  
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:782  
[6] handle\_repos\_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})  
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:852  
[7] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::Base.TTY})  
@ Pkg.API C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:258  
[8] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{})  
@ Pkg.API C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:159  
[9] add(pkgs::Vector{Pkg.Types.PackageSpec})  
@ Pkg.API C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:148  
[10] top-level scope  
@ none:1

caused by: GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn’t know how to configure to use a file or directory of certificate authority roots, but your environment specifies one via the SSL\_CERT\_FILE variable. If you believe your system’s root certificates are safe to use, you can `export JULIA_SSL_CA_ROOTS_PATH=""` in your environment to use those instead.)  
Stacktrace:  
[1] set\_ssl\_cert\_locations(cert\_loc::String)  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:1025  
[2] initialize()  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:991  
[3] (::LibGit2.var"#161#162")()  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:977  
[4] lock(f::LibGit2.var"#161#162", l::ReentrantLock)  
@ Base .\lock.jl:229  
[5] ensure\_initialized  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:973 [inlined]  
[6] LibGit2.GitConfig(level::LibGit2.Consts.GIT\_CONFIG)  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\config.jl:50  
[7] GitConfig  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\config.jl:50 [inlined]  
[8] CredentialPayload  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\types.jl:1367 [inlined]  
[9] #CredentialPayload#23  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\types.jl:1385 [inlined]  
[10] CredentialPayload  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\types.jl:1384 [inlined]  
[11] clone(repo\_url::SubString{String}, repo\_path::String; branch::String, isbare::Bool, remote\_cb::Ptr{Nothing}, credentials::LibGit2.CachedCredentials, callbacks::Dict{Symbol, Tuple{Ptr{Nothing}, Any}})  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:564  
[12] clone  
@ LibGit2 C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:558 [inlined]  
[13] clone(io::Base.TTY, url::String, source\_path::String; header::Nothing, credentials::Nothing, kwargs::@Kwargs{isbare::Bool})  
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:121  
[14] clone  
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:88 [inlined]  
[15] #ensure\_clone#2  
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:74 [inlined]  
[16] handle\_repo\_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)  
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:782  
[17] handle\_repos\_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})  
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:852  
[18] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::Base.TTY})  
@ Pkg.API C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:258  
[19] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{})  
@ Pkg.API C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:159  
[20] add(pkgs::Vector{Pkg.Types.PackageSpec})  
@ Pkg.API C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:148  
[21] top-level scope  
@ none:1  
Traceback (most recent call last):  
File “c:/Users/81080758/DS-BiasMitigationFramework/symbolic\_regression/distillation\_sr.py”, line 7, in   
import pysr  
File “C:\ProgramData\miniconda3\envs\sr\_env\lib\site-packages\pysr\__init_\_.py”, line 4, in   
from .julia\_import import jl # isort:skip  
File “C:\ProgramData\miniconda3\envs\sr\_env\lib\site-packages\pysr\julia\_import.py”, line 32, in   
from juliacall import Main as jl # type: ignore  
File “C:\ProgramData\miniconda3\envs\sr\_env\lib\site-packages\juliacall\__init_\_.py”, line 228, in   
init()  
File “C:\ProgramData\miniconda3\envs\sr\_env\lib\site-packages\juliacall\__init_\_.py”, line 153, in init  
CONFIG[‘exepath’] = exepath = juliapkg.executable()  
File “C:\ProgramData\miniconda3\envs\sr\_env\lib\site-packages\juliapkg\deps.py”, line 303, in executable  
resolve()  
File “C:\ProgramData\miniconda3\envs\sr\_env\lib\site-packages\juliapkg\deps.py”, line 282, in resolve  
run([exe, ‘–project=’+project, ‘–startup-file=no’, ‘-e’, '; '.join(script)], check=True, env=env)  
File “C:\ProgramData\miniconda3\envs\sr\_env\lib\subprocess.py”, line 516, in run  
raise CalledProcessError(retcode, process.args,  
subprocess.CalledProcessError: Command ‘[‘C:\ProgramData\miniconda3\envs\sr\_env\julia\_env\pyjuliapkg\install\bin\julia.exe’, ‘–project=C:\ProgramData\miniconda3\envs\sr\_env\julia\_env’, ‘–startup-file=no’, ‘-e’, ‘import Pkg; Pkg.add([Pkg.PackageSpec(name=“PythonCall”, uuid=“6099a3de-0909-46bc-b1f4-468b9a2dfc0d”), Pkg.PackageSpec(name=“SymbolicRegression”, uuid=“8254be44-1295-4e6a-a16d-46603ac705cb”, url=raw"[GitHub - MilesCranmer/SymbolicRegression.jl: Distributed High-Performance Symbolic Regression in Julia](https://github.com/MilesCranmer/SymbolicRegression.jl)", rev=raw"v0.23.1"), Pkg.PackageSpec(name=“ClusterManagers”, uuid=“34f1f09b-3a8b-5176-ab39-66d58a4d544e”), Pkg.PackageSpec(name=“Serialization”, uuid=“9e88b42a-f829-5b0c-bbe9-9e923198166b”)]); Pkg.resolve(); Pkg.precompile()’]’ returned non-zero exit status 1.

---

<div class="post-metadata">

**Author:** ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Post date:** [February 8, 2024, 3:49pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/29 "2024-02-08T15:49:53Z")

</div>

Does this issue help? [[BUG] could not load library "libgit2" · Issue #267 · MilesCranmer/PySR · GitHub](https://github.com/MilesCranmer/PySR/issues/267)

---

<div class="post-metadata">

**Author:** ![Maria\_Pintos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_pintos/32/206878_2.png) [@Maria\_Pintos](https://discourse.julialang.org/u/Maria_Pintos)\
**Post date:** [February 8, 2024, 3:50pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/30 "2024-02-08T15:50:05Z")

</div>

If I cannot download Julia from the Microsoft Store, what other installation process would you recommend?

---

<div class="post-metadata">

**Author:** ![Maria\_Pintos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_pintos/32/206878_2.png) [@Maria\_Pintos](https://discourse.julialang.org/u/Maria_Pintos)\
**Post date:** [February 8, 2024, 3:52pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/31 "2024-02-08T15:52:15Z")

</div>

I already tried this

activate @pysr-0.16.3  
rm SymbolicRegression ClusterManagers DynamicExpressions  
add SymbolicRegression ClusterManagers DynamicExpressions

---

<div class="post-metadata">

**Author:** ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Post date:** [February 8, 2024, 3:52pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/32 "2024-02-08T15:52:29Z")

</div>

Hm maybe try the downloadable version? [Download Julia](https://julialang.org/downloads/#current_stable_release)

Or is that the one you had originally tried?

---

<div class="post-metadata">

**Author:** ![Maria\_Pintos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maria_pintos/32/206878_2.png) [@Maria\_Pintos](https://discourse.julialang.org/u/Maria_Pintos)\
**Post date:** [February 8, 2024, 3:53pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/33 "2024-02-08T15:53:13Z")

</div>

Its the one I originally tried…

---

<div class="post-metadata">

**Author:** ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Post date:** [February 8, 2024, 3:53pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/34 "2024-02-08T15:53:17Z")

</div>

Oh. Can you do `pysr-0.16.9` instead of `0.16.3`? I’m assuming you have the latest PySR which is 0.16.9.

0.16.3 was just the most recent version when that GitHub issue was posted.

---

<div class="post-metadata">

**Author:** ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Post date:** [February 8, 2024, 3:56pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/35 "2024-02-08T15:56:53Z")

</div>

Btw, did you try the environment variable that was suggested in the error message?

```julia
JULIA_SSL_CA_ROOTS_PATH=""

```

e.g.,

```julia
import os
os.environ["JULIA_SSL_CA_ROOTS_PATH"] = ""

import pysr
pysr.install() # Only for PySR < v0.17

```

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [February 8, 2024, 5:49pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927/36 "2024-02-08T17:49:09Z")

</div>

Issue seems resolved per [[BUG] could not load library "libgit2" · Issue #267 · MilesCranmer/PySR · GitHub](https://github.com/MilesCranmer/PySR/issues/267#issuecomment-1934506935)

[Previous page](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927.md?page=1)
