# How to install pyqt for PythonPlot

**URL:** <https://discourse.julialang.org/t/how-to-install-pyqt-for-pythonplot/97542>\
**Category:** General Usage\
**Tags:** question, package, conda, pythonplot\
**Created:** [April 16, 2023, 12:12pm UTC](https://discourse.julialang.org/t/how-to-install-pyqt-for-pythonplot/97542 "2023-04-16T12:12:08Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [April 16, 2023, 12:12pm UTC](https://discourse.julialang.org/t/how-to-install-pyqt-for-pythonplot/97542/1 "2023-04-16T12:12:08Z")

</div>

I would like to use PythonPlot.jl with the QT backend. But how can I install it? I tried:

```julia
using CondaPkg
# press ]
(Climate) pkg> conda add pyqt5

```

which doesn’t work, it cannot find the package:

```julia
error libmamba Could not solve for environment specs
    The following package could not be installed
    └─ pyqt5 * does not exist (perhaps a typo or a missing channel).

```

Any idea?

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [April 17, 2023, 9:30am UTC](https://discourse.julialang.org/t/how-to-install-pyqt-for-pythonplot/97542/2 "2023-04-17T09:30:37Z")

</div>

```julia

pkg> conda add pyqt

```

Or

```julia
pkg> conda add anaconda::pyqt

```

?

---

<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:** [April 17, 2023, 7:39pm UTC](https://discourse.julialang.org/t/how-to-install-pyqt-for-pythonplot/97542/3 "2023-04-17T19:39:03Z")

</div>

If I do:

```julia
mkdir test
cd test
julia --project="."

```

and then

```julia
# press ]
add CondaPkg
# press <backspace>
using CondaPkg
# press ]
conda add pyqt
add PythonPlot
# press <backspace>
using PythonPlot

```

I get the error:

```julia
ERROR: InitError: Python: ModuleNotFoundError: No module named 'matplotlib'
Python stacktrace: none
Stacktrace:
  [1] pythrow()
    @ PythonCall ~/.julia/packages/PythonCall/dsECZ/src/err.jl:94
  [2] errcheck
    @ ~/.julia/packages/PythonCall/dsECZ/src/err.jl:10 [inlined]
  [3] pyimport(m::String)
    @ PythonCall ~/.julia/packages/PythonCall/dsECZ/src/concrete/import.jl:11
  [4] __init__ ()
    @ PythonPlot ~/.julia/packages/PythonPlot/f591M/src/init.jl:148
  [5] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1074
  [6] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base ./loading.jl:1020
  [7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base ./loading.jl:1469
  [8] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1750
  [9] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1623
 [10] macro expansion
    @ ./loading.jl:1611 [inlined]
 [11] macro expansion
    @ ./lock.jl:267 [inlined]
 [12] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1574
during initialization of module PythonPlot

```

Any idea?

So I could install pyqt, but it does not work together with PythonPlot …

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [April 18, 2023, 6:30am UTC](https://discourse.julialang.org/t/how-to-install-pyqt-for-pythonplot/97542/4 "2023-04-18T06:30:27Z")

</div>

`pkg> conda add matplotlib`  
?
