# IJulia in 1.7 fails on Mac M1: Solved!

**URL:** <https://discourse.julialang.org/t/ijulia-in-1-7-fails-on-mac-m1-solved/72370>\
**Category:** General Usage\
**Tags:** package\
**Created:** [December 1, 2021, 12:40pm UTC](https://discourse.julialang.org/t/ijulia-in-1-7-fails-on-mac-m1-solved/72370 "2021-12-01T12:40:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [December 1, 2021, 12:40pm UTC](https://discourse.julialang.org/t/ijulia-in-1-7-fails-on-mac-m1-solved/72370/1 "2021-12-01T12:40:18Z")

</div>

All fixed. Read @giordano’s post and my last one.

Just installed 1.7 on M1 mac. Started from scratch with no .julia directory.

Tried to fire up a notebook and got this

```julia
julia> notebook(;dir=pwd())
install Jupyter via Conda, y/n? [y]: y
[ Info: Downloading miniconda installer ...
ERROR: Unsupported miniconda platform: MacOSX-arm64

```

What should I do?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [December 1, 2021, 1:22pm UTC](https://discourse.julialang.org/t/ijulia-in-1-7-fails-on-mac-m1-solved/72370/2 "2021-12-01T13:22:07Z")

</div>

Try [reading the documentation of `Conda.jl`](https://github.com/JuliaPy/Conda.jl/blob/bc304f8f8dad0cf78fbba151bed61ebe26fe6589/README.md#using-miniforge)

> ## Using Miniforge
> 
> Miniforge is a community based conda installer by `conda-forge`, a part of NumFOCUS.  
> Using miniforge and conda-forge in general avoids using `repo.anaconda.com`  
> maintained by Anaconda, Inc which has terms of conditions that you may want to avoid.  
> `conda-forge` packages are hosted on `anaconda.org`, but Anaconda, Inc has been  
> providing hosting for free under the terms of `conda-forge` which is `BSD-3-Clause`  
> on top of the original license of the software packages. To use miniforge, use  
> the `CONDA_JL_USE_MINIFORGE` environment variable.
> 
> ```jl
> julia> ENV["CONDA_JL_USE_MINIFORGE"] = "1"
> 
> pkg> build Conda
> 
> ```
> 
> Also note that you have to use Miniforge for `aarch64-linux-gnu` and  
> `aarch64-apple-darwin` platforms as Miniconda is not available for those platforms yet.

This is actually the default in the `master` branch of `Conda.jl`, but it didn’t make it to a release yet

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [December 1, 2021, 1:36pm UTC](https://discourse.julialang.org/t/ijulia-in-1-7-fails-on-mac-m1-solved/72370/3 "2021-12-01T13:36:48Z")

</div>

Thanks,

I use conda only with notebooks and have no clue about fixing problems like the one I have.

I tried to understand your respose as best I could and (1) typed your two lines, (2) restarted Julia, (3) typed them again, and (4) restarted julia.

notebook started up, I got to my notebook, and then

```julia
using PyPlot

```

failed with

```julia
ERROR: InitError: PyError (PyImport_ImportModule

The Python package matplotlib could not be imported by pyimport. Usually this means
that you did not install matplotlib in the Python version being used by PyCall.

PyCall is currently configured to use the Python version at:

/Applications/Xcode.app/Contents/Developer/usr/bin/python3

```

Trying `using PyPlot` from the REPL got the same result.

I do not use python at all and I am in over my head.

I will go back to 1.6.3 or try the intel version of 1.7 on my M1 mac.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [December 26, 2021, 4:42pm UTC](https://discourse.julialang.org/t/ijulia-in-1-7-fails-on-mac-m1-solved/72370/4 "2021-12-26T16:42:04Z")

</div>

Same issue with PyPlot in the REPL for 1.7.1.

Back to intel and rosetta

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [December 29, 2021, 10:19pm UTC](https://discourse.julialang.org/t/ijulia-in-1-7-fails-on-mac-m1-solved/72370/5 "2021-12-29T22:19:26Z")

</div>

I figured out my problem.

```julia
ENV["PYTHON"]=""

```

somehow got erased from my startup.jl. Putting it back and building PyCall and PyPlot did the job.
