Difficulty & Unique Issues Getting Julia

Hi All totally annoying & newbie question here,
I’m trying to install Julia onto a Mac M1 anaconda environment, and, as per usual with my installation attempts, I’m getting errors installing. Specifically I’m getting the output:

conda install -c "conda-forge/label/broken" Julia

Collecting package metadata (current_repodata.json): / WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.*, but conda is ignoring the .* and treating it as 1
done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: | 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                          

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package libcxx conflicts for:
python=3.9 -> libffi[version='>=3.2.1,<3.3.0a0'] -> libcxx[version='>=4.0.1']
python=3.9 -> libcxx[version='>=10.0.0|>=10.0.1|>=14.0.6|>=12.0.0']

Package zlib conflicts for:
python=3.9 -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.13,<1.3.0a0|>=1.2.12,<1.3.0a0']
julia -> zlib[version='>=1.2.11,<1.3.0a0']
julia -> git -> zlib=1.2

Any advice? I assume this isn’t too common as I can’t find any fixes.

Hi there,

Don’t install Julia via conda. Use the official downloads from Download Julia.

There’s also the excellent juliaup which lets you install and manage various installations of Julia on the same machine: GitHub - JuliaLang/juliaup: Julia installer and version multiplexer

8 Likes

Also, not annoying question! M1 set-up can be a bit of a challenge. Welcome to the Julia Community! I fully recommend juliaup as well. :slight_smile:

what is the reason that you wish to install Julia through Conda?

Are you planning or trying something that requires both Conda & Julia to interact?

I guess creating a new environment in conda and then setting up julia might solve your problem.

Thanks all, the easiest way to get packages/languages is to manage it all through anaconda at my work from a security standpoint. Having installed Julia via the Julia website, I have it functioning stand alone, however when I try to launch a Julia driven Kernel in Jupyter I get the below error:

Traceback (most recent call last):
  File "/opt/anaconda3/lib/python3.9/site-packages/tornado/web.py", line 1704, in _execute
    result = await result
  File "/opt/anaconda3/lib/python3.9/site-packages/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/opt/anaconda3/lib/python3.9/site-packages/notebook/services/sessions/handlers.py", line 74, in post
    model = yield maybe_future(
  File "/opt/anaconda3/lib/python3.9/site-packages/tornado/gen.py", line 762, in run
    value = future.result()
  File "/opt/anaconda3/lib/python3.9/site-packages/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/opt/anaconda3/lib/python3.9/site-packages/notebook/services/sessions/sessionmanager.py", line 98, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "/opt/anaconda3/lib/python3.9/site-packages/tornado/gen.py", line 762, in run
    value = future.result()
  File "/opt/anaconda3/lib/python3.9/site-packages/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/opt/anaconda3/lib/python3.9/site-packages/notebook/services/sessions/sessionmanager.py", line 110, in start_kernel_for_session
    kernel_id = yield maybe_future(
  File "/opt/anaconda3/lib/python3.9/site-packages/tornado/gen.py", line 762, in run
    value = future.result()
  File "/opt/anaconda3/lib/python3.9/site-packages/notebook/services/kernels/kernelmanager.py", line 176, in start_kernel
    kernel_id = await maybe_future(self.pinned_superclass.start_kernel(self, **kwargs))
  File "/opt/anaconda3/lib/python3.9/site-packages/jupyter_client/multikernelmanager.py", line 186, in start_kernel
    km.start_kernel(**kwargs)
  File "/opt/anaconda3/lib/python3.9/site-packages/jupyter_client/manager.py", line 341, in start_kernel
    self.kernel = self._launch_kernel(kernel_cmd, **kw)
  File "/opt/anaconda3/lib/python3.9/site-packages/jupyter_client/manager.py", line 249, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "/opt/anaconda3/lib/python3.9/site-packages/jupyter_client/launcher.py", line 132, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "/opt/anaconda3/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/anaconda3/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/anaconda3/envs/julia/bin/julia'

Could this be driven by the Julia install being outside of my anaconda env’t which doesn’t have Julia?

I’m the lead maintainer of the conda-forge julia-feedstock:

Native M1 support is broken on multiple levels. It is labeled as such for a reason. If you want native M1 support, use the official binaries, please.

If you really want to use for conda for this, use the x86-64 version of mamba-forge:

If you want a managed julia install, try GitHub - JuliaLang/juliaup: Julia installer and version multiplexer .

I’ll repeat this one more time. Julia for M1 Macs via conda-forge is not ready. It is broken. Do not use it.

3 Likes

I have installed Julia through the official installs but I just tried it through micromamba. It cannot seem to solve it! Does it only work for conda & mamba?

win10/micromamba/python 3.9

micromamba install julia -c conda-forge

micromamba install julia -c conda-forge

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/noarch                                  10.6MB @ 416.8kB/s 26.4s
conda-forge/win-64                                  18.4MB @ 678.5kB/s 28.5s

Pinned packages:
  - python 3.9.*

error    libmamba Could not solve for environment specs
    Encountered problems while solving:
      - nothing provides requested julia

    The environment can't be solved, aborting the operation

critical libmamba Could not solve for environment specs

micromamba install -c “conda-forge/label/broken” julia

micromamba install -c "conda-forge/label/broken" julia

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/label/broken/noarch                     50.9kB @  23.6kB/s  2.2s
conda-forge/label/broken/win-64                    249.6kB @  81.3kB/s  3.1s

Pinned packages:
  - python 3.9.*

error    libmamba Could not solve for environment specs
    Encountered problems while solving:
      - nothing provides requested julia

    The environment can't be solved, aborting the operation

critical libmamba Could not solve for environment specs

There is no julia conda-forge package for Windows due to limitations of the conda-forge build infrastructure. They would basically have to import the entire msys2 build tool chain. The one that is there is not well maintained.

The msys2 folks also have a build:
https://packages.msys2.org/package/mingw-w64-x86_64-julia?repo=mingw64

I recommend using juliaup for Windows. Easiest way to install that is via the Windows store:
https://apps.microsoft.com/store/detail/julia/9NJNWW8PVKMN?hl=en-us&gl=us

Juliaup will install official julia binaries.

1 Like

thanks for the quick response. I guess I didn’t properly notice the OS tag. :woman_facepalming: