# Using pymc and pymc-bart

**URL:** <https://discourse.pymc.io/t/using-pymc-and-pymc-bart/11232>\
**Category:** v5\
**Tags:** bart\
**Created:** [January 20, 2023, 6:54pm UTC](https://discourse.pymc.io/t/using-pymc-and-pymc-bart/11232 "2023-01-20T18:54:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsh980210](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jsh980210/32/5630_2.png) [@jsh980210](https://discourse.pymc.io/u/jsh980210)\
**Post date:** [January 20, 2023, 6:54pm UTC](https://discourse.pymc.io/t/using-pymc-and-pymc-bart/11232/1 "2023-01-20T18:54:21Z")

</div>

![bart_error](https://canada1.discourse-cdn.com/flex036/uploads/pymc3/original/2X/1/12d3d54ff64285826421644ea3d6ceff6218fcd5.png)

Hello,

I have installed pymc and pymc-bart on my local computer and I want to build a bart model. But when importing the modules, it seems pymc-bart has some errors. Could anyone help with this? Thanks.

---

<div class="post-metadata">

**Author:** ![ricardoV94](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ricardov94/32/5775_2.png) [@ricardoV94](https://discourse.pymc.io/u/ricardoV94)\
**Post date:** [January 20, 2023, 10:04pm UTC](https://discourse.pymc.io/t/using-pymc-and-pymc-bart/11232/2 "2023-01-20T22:04:14Z")

</div>

I think your version of PyMC is too outdated. I am not sure which one is needed but you can try the latest

---

<div class="post-metadata">

**Author:** ![jsh980210](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jsh980210/32/5630_2.png) [@jsh980210](https://discourse.pymc.io/u/jsh980210)\
**Post date:** [January 20, 2023, 10:28pm UTC](https://discourse.pymc.io/t/using-pymc-and-pymc-bart/11232/3 "2023-01-20T22:28:36Z")

</div>

[https://www.pymc.io/projects/examples/en/latest/case\_studies/BART\_introduction.html](https://www.pymc.io/projects/examples/en/latest/case_studies/BART_introduction.html)

In this example it looks pymc 4.3.0 works with pymc-bart

---

<div class="post-metadata">

**Author:** ![ricardoV94](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ricardov94/32/5775_2.png) [@ricardoV94](https://discourse.pymc.io/u/ricardoV94)\
**Post date:** [January 21, 2023, 8:11am UTC](https://discourse.pymc.io/t/using-pymc-and-pymc-bart/11232/4 "2023-01-21T08:11:21Z")

</div>

That example is using pymc\_bart 0.2.0 (there’s a watermark near the bottom). Which version did you install?

Newer versions need a more recent version of pymc

> **[Releases · pymc-devs/pymc-bart](https://github.com/pymc-devs/pymc-bart/releases)**
>
> Contribute to pymc-devs/pymc-bart development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![jsh980210](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jsh980210/32/5630_2.png) [@jsh980210](https://discourse.pymc.io/u/jsh980210)\
**Post date:** [January 23, 2023, 5:27pm UTC](https://discourse.pymc.io/t/using-pymc-and-pymc-bart/11232/5 "2023-01-23T17:27:57Z")

</div>

I’m using pymc 4.3.0 and pymc-bart 0.3.0. I guess that’s the reason. How could I install a 0.2.0 pymc-bart? I think pip install pymc-bart would get a 0.3.0 pymc-bart.

---

<div class="post-metadata">

**Author:** ![cluhmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/cluhmann/32/3083_2.png) [@cluhmann](https://discourse.pymc.io/u/cluhmann)\
**Post date:** [January 23, 2023, 6:06pm UTC](https://discourse.pymc.io/t/using-pymc-and-pymc-bart/11232/6 "2023-01-23T18:06:45Z")

</div>

Depending on how you installed pymc-bart:  
`conda install pymc-bart==0.2.0`  
or  
`pip install pymc-bart==0.2.0`
