# PyPlot stopped working when upgrading to Fedora 37

**URL:** https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485
**Category:** General Usage
**Tags:** question
**Created:** [November 19, 2022, 3:32am UTC](https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485 "2022-11-19T03:32:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![marllos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marllos/32/205917_2.png) [@marllos](https://discourse.julialang.org/u/marllos)
#### Post date: [November 19, 2022, 3:32am UTC](https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485/1 "2022-11-19T03:32:01Z")

</div>

Hello everyone!  
I upgraded my system from Fedora 35 to Fedora 37 and the PyPlot package stopped working. There are many error messages when I run using PyPlot, suggesting that the matplotlib library may not be installed, but it is installed. Has anyone experienced this and managed to solve it?

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [November 19, 2022, 3:47am UTC](https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485/2 "2022-11-19T03:47:45Z")

</div>

Try;

```julia
using Pkg
ENV["PYTHON"]=""
Pkg.build("PyCall")

```

The next time you import `PyPlot`, it will tell Conda to install Matplotlib.

So it will use a Python installation that is separate from the Fedora Python version.

---

<div class="post-metadata">

### Author: ![marllos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marllos/32/205917_2.png) [@marllos](https://discourse.julialang.org/u/marllos)
#### Post date: [November 19, 2022, 4:01am UTC](https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485/3 "2022-11-19T04:01:50Z")

</div>

Can this be reversed later?

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [November 19, 2022, 4:05am UTC](https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485/4 "2022-11-19T04:05:38Z")

</div>

Well, if you want to use the system version of Python you can just do:

```julia
using Pkg
Pkg.build("PyCall")

```

On GNU/Linux systems, PyCall will default to using the `python3` program (if any, otherwise `python`) in your PATH.

---

<div class="post-metadata">

### Author: ![marllos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marllos/32/205917_2.png) [@marllos](https://discourse.julialang.org/u/marllos)
#### Post date: [November 19, 2022, 4:10am UTC](https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485/5 "2022-11-19T04:10:13Z")

</div>

That’s interesting! Thank you very much.
