# Can't install Polars and DuckDB on windows 11

**URL:** https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688
**Category:** New to Julia
**Tags:** package
**Created:** [November 15, 2024, 4:35pm UTC](https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688 "2024-11-15T16:35:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pk1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pk1/32/213441_2.png) [@pk1](https://discourse.julialang.org/u/pk1)
#### Post date: [November 15, 2024, 4:35pm UTC](https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688/1 "2024-11-15T16:35:59Z")

</div>

Hello, I am an experienced programmer, and want to try Julia (1.11.1).  
For evaluation purposes, I wanted to start by installing two tools that I use regularly and know very well. Polars and DuckDB.  
I found it very difficult to find information on how to install packages for Julia, and after trying with Pkg add in the Pkg REPL I get all kinds for errors.

I think this is the main or more frequent appearing error.

```julia
┌ Error: curl_easy_setopt: 4
l\utils.jl:50

```

I would really appreciate any help. Thanks a lot in advance.

---

<div class="post-metadata">

### Author: ![eldee](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eldee](https://discourse.julialang.org/u/eldee)
#### Post date: [November 16, 2024, 11:42am UTC](https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688/2 "2024-11-16T11:42:57Z")

</div>

Hi,

Happy to hear you want to give Julia a shot!

> [@pk1](#):
>
> I found it very difficult to find information on how to install packages for Julia

I think the main source is [the Pkg.jl documentation](https://pkgdocs.julialang.org/v1/managing-packages/). Long story short (though you’re probably aware) you can use either

```julia-repl
(@v1.10) pkg> add BenchmarkTools

```

in Pkg REPL mode, or

```julia-repl
julia> using Pkg

julia> Pkg.add("BenchmarkTools")

```

in standard mode, to install a package called BenchmarkTools(.jl).

> [@pk1](#):
>
> Polars and DuckDB.

Do you only have issues installing these specific packages, or installing packages in general?

---

<div class="post-metadata">

### Author: ![pk1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pk1/32/213441_2.png) [@pk1](https://discourse.julialang.org/u/pk1)
#### Post date: [November 16, 2024, 1:25pm UTC](https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688/3 "2024-11-16T13:25:40Z")

</div>

Thanks a lot for you response.  
I have installed multiple packages successfully, by entering the `Pkg REPL` with `]` and doing  
`add <PackageName>`

But with `add Polars` I get the error I posted above.  
When I tried the same on linux (WSL 2), I got the error

```julia
ERROR: The following package names could not be resolved:
 * Polars (not found in project, manifest or registry)
   Suggestions: Solaris Colors Polymers Pilates Poptart PolyChaos Monads Dolang Jolab Posets Folds Tonari Colab Losers Peaks

```

For example I just did successfully `add BenchmarkTools` on linux

```julia
(@v1.11) pkg> add BenchmarkTools
   Resolving package versions...
   Installed BenchmarkTools ─ v1.5.0
    Updating `~/.julia/environments/v1.11/Project.toml`
  [6e4b80f9] + BenchmarkTools v1.5.0
    Updating `~/.julia/environments/v1.11/Manifest.toml`
  [6e4b80f9] + BenchmarkTools v1.5.0
  [9abbd945] + Profile v1.11.0
Precompiling project...
  1 dependency successfully precompiled in 5 seconds. 213 already precompiled.

```

---

<div class="post-metadata">

### Author: ![eldee](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eldee](https://discourse.julialang.org/u/eldee)
#### Post date: [November 16, 2024, 1:54pm UTC](https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688/4 "2024-11-16T13:54:27Z")

</div>

> [@pk1](#):
>
> But with `add Polars` I get the error I posted above.  
> When I tried the same on linux (WSL 2), I got the error
> 
> ```julia
> ERROR: The following package names could not be resolved:
> * Polars (not found in project, manifest or registry)
> Suggestions: Solaris Colors Polymers Pilates Poptart PolyChaos Monads Dolang Jolab Posets Folds Tonari Colab Losers Peaks
> 
> ```

On Windows 10 and Julia 1.11.1 at least I got the same error message as you got on WSL 2. Assuming you’re referring to

> **[GitHub - Pangoraw/Polars.jl: :bear: Julia wrapper around the polars library](https://github.com/Pangoraw/Polars.jl)**
>
> :bear: Julia wrapper around the polars library

the problem just [seems to be](https://github.com/Pangoraw/Polars.jl/issues/7) that this package is not registered. Luckily you can simply use

```julia
(@v1.11) pkg> add https://github.com/Pangoraw/Polars.jl

```

which works fine for me.

For DuckDB (v1.1) I got precompilation errors, both on Julia 1.10.4 and 1.11.1. This seems to be a known issue:

> [@Help Using DuckDB](https://discourse.julialang.org/t/help-using-duckdb/121401):
>
> I get an error when trying to use DuckDB. Is it my setup, something I might be doing wrong, or possibly a package issue? julia\> using DuckDB Precompiling DuckDB Info Given DuckDB was explicitly requested, output will be shown live ERROR: LoadError: could not load symbol “duckdb\_vector\_size”: Thank you for any help you might give a newbie hobbyist.

In this topic there are also some (links to) suggested workarounds. Using DuckDB v1.0 via

```julia-repl
(@v1.11) pkg> add DuckDB_jll@1.0 DuckDB@1.0

```

(first `rm` or `remove` v1.1 if it is installed), I did not run into any problems.

---

<div class="post-metadata">

### Author: ![pk1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pk1/32/213441_2.png) [@pk1](https://discourse.julialang.org/u/pk1)
#### Post date: [November 16, 2024, 3:02pm UTC](https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688/5 "2024-11-16T15:02:12Z")

</div>

Thank you so so much for your help.  
When I tried in powershell, it didn’t work. Possibly it has to do  
When I tried in VSCode on Windows, but connected to WSL 2. It worked.  
So now I will be able to use it.

May I ask you two different questions? If you think it is more appropriate, I will open new topic under the category you will name.

First question is, how were you able to find this answer? In other words, what should I have done to find the solution myself.

The second question is, can you recommend any book(s), youtube video(s), or sites that offer good introductions to julia targeting already experienced developers (python, Rust, R)? There are a couple of good videos on youtube, but from simple data scientists that are not so good for my case.  
Thanks a lot in advance

The error on windows is:

```julia
(@v1.11) pkg> add https://github.com/Pangoraw/Polars.jl
     Cloning git-repo `https://github.com/Pangoraw/Polars.jl`
ERROR: failed to clone from https://github.com/Pangoraw/Polars.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.)

```

My version of julia is

```julia
 Version 1.11.1 (2024-10-16)

```

---

<div class="post-metadata">

### Author: ![eldee](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eldee](https://discourse.julialang.org/u/eldee)
#### Post date: [November 16, 2024, 3:37pm UTC](https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688/6 "2024-11-16T15:37:52Z")

</div>

Glad I could help.

> [@pk1](#):
>
> First question is, how were you able to find this answer? In other words, what should I have done to find the solution myself.

Well, Google (or your favourite seach engine) and the Julia Discourse are your friends 🙂 . When I got the error message that Polars could not be found (in the registry), I just googled to get to the github page. Most of the time you would find installation instructions, especially if it’s not just `add <package>`. In the absence of this I checked the Issues, where there indeed was one about registration. Now, I remembered that you could directly install packages from github, but if you wouldn’t, the first Google result for “Julia install package from github” is

> <https://stackoverflow.com/questions/65914480/julia-adding-package-from-github>

which is helpful.

For DuckDB I just searched for something along the lines of “precompile DuckDB” on the Julia Discourse, resulting in the topic I linked to. Again, I was already aware of the Pkg syntax to install a specific version, but that’s a quick Google search away. If I remember correctly

```julia-repl
(@v1.11) pkg> add DuckDB@1.0

```

didn’t work, as it would still install a newer version of the \_jll file, as evidenced by the output in the REPL, so I also forced the version here.

> [@pk1](#):
>
> The second question is, can you recommend any book(s), youtube video(s), or sites that offer good introductions to julia targeting already experienced developers (python, Rust, R)? There are a couple of good videos on youtube, but from simple data scientists that are not so good for my case.

I think it would be best to create a new topic. Well, first look around a bit on the Discourse to see if no similar question has been asked in the past. If not, I think posting under #New to Julia is fine.

> [@pk1](#):
>
> The error on windows is:

I’m haven’t encountered this error before, but you could try the solution proposed here:

> [@How to fix SSL cert issues in Pkg](https://discourse.julialang.org/t/how-to-fix-ssl-cert-issues-in-pkg/115495/3):
>
> I struggled with this for a while, and found that removing environment variables: SSL\_CERT\_FILE JULIA\_SSL\_CA\_ROOTS\_PATH made things work. At the windows powershell prompt, these can be removed manually (and temporarily, for testing) with: Remove-Item Env:SSL\_CERT\_FILE Remove-Item Env:JULIA\_SSL\_CA\_ROOTS\_PATH If you find this works, you can then remove them from your personal environment variables.

---

<div class="post-metadata">

### Author: ![pk1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pk1/32/213441_2.png) [@pk1](https://discourse.julialang.org/u/pk1)
#### Post date: [November 16, 2024, 3:56pm UTC](https://discourse.julialang.org/t/cant-install-polars-and-duckdb-on-windows-11/122688/7 "2024-11-16T15:56:57Z")

</div>

Thank again
