conda-forge / julia-feedstock

A conda-smithy repository for julia.
BSD 3-Clause "New" or "Revised" License
23 stars 32 forks source link

Installing julia through conda on Windows #242

Open ericqu opened 1 year ago

ericqu commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

It is an enhancement request.

I need to install Julia through anaconda while on a windows platform (julia on anaconda), but it does not include the win-64 label.

Ideally, it would be like the rust entry (with regards to the win-64 label): rust on anaconda.

I opened( and later closed) an issue .here

Installed packages

I don't think it is relevant.

Environment info

I don't think it is relevant.
mkitti commented 1 year ago

This is probably not going to happen directly. I would need a comprehensive mingw-w64 environment here to build julia in conda-forge. As far as I can tell, conda-forge only supports a Visual Studio based environment across all the dependencies.

The next best situation would be a juliaup based approach. This is a Rust based manager that tracks and updates julia.

https://github.com/JuliaLang/juliaup

We have this package in conda-forge, but it needs some better integration.

ericqu commented 1 year ago

Thank you so much for the quick feedback. I hoped it was a matter of uploading/downloading the appropriate package from the julia lang website; in principle, I only needed a version of Julia and the LTS (1.6.7) would be okay. I didn't realize packages needed to be rebuilt for that delivery channel.

I briefly looked into juliaup, and it seems the focus is on Linux/MacOs. Do I understand you correctly that once juliaup works easily with Windows, you can then use it to get the packages available through conda? Or are you saying I should use juliaup to get Julia on Windows? For that task I can't install/download any software but with conda, so juliaup won't directly help.

Is the mingw-w64 environment you need on your machine or the GitHub action environment? What needs to be done (is it to make a structure similar to the Linux/macOS, plus test one version of Julia compiles/test okay)? So that I can then see if it is something I can do.

mkitti commented 1 year ago

juliaup was originally developed for Windows. The easiest way to install it is through the Windows store as "julia".

https://apps.microsoft.com/store/detail/julia/9NJNWW8PVKMN?hl=en-us&gl=us&rtc=1

mkitti commented 1 year ago

My more recent attempt to build it is here: https://github.com/conda-forge/julia-feedstock/pull/168

mkitti commented 1 year ago

Another approach would be to address https://github.com/conda-forge/juliaup-feedstock/issues/32 .

  1. julia-feedstock for windows would depend on juliaup.
  2. julia-feedstock for windows would then use juliaup to install julia on activate
tomMoral commented 1 month ago

Hi there,

Thanks a lot for maintaining this package, it is super helpful! :)

I am also looking to install julia with conda on windows for a CI. It seems that it is not yet possible out of the box with this package but it could be based on the juliaup package, has anyone managed to make this work?

mkitti commented 1 month ago

There are a few alternatives.

For example, you could load the julia package from the julia-forge channel: https://prefix.dev/channels/julia-forge/packages/julia

conda create -n julia_from_forge -c https://repo.prefix.dev/julia-forge julia

Another one is you could try the pyjuliacall package on conda-forge:

conda install conda-forge::pyjuliacall
tomMoral commented 1 month ago

Thanks a lot for the fast reply! will try to use julia-forge then :)

mkitti commented 1 month ago

Note that julia-forge is an experimental initiative by @wolfv . It is an interesting approach that I might join shortly.