# Sampling method taking forever on my MacBook Pro

**URL:** <https://discourse.mc-stan.org/t/sampling-method-taking-forever-on-my-macbook-pro/21681>\
**Category:** General\
**Tags:** mac, pystan\
**Created:** [April 3, 2021, 9:05pm UTC](https://discourse.mc-stan.org/t/sampling-method-taking-forever-on-my-macbook-pro/21681 "2021-04-03T21:05:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![motuchsznajder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/motuchsznajder/32/11178_2.png) [@motuchsznajder](https://discourse.mc-stan.org/u/motuchsznajder)\
**Post date:** [April 3, 2021, 9:05pm UTC](https://discourse.mc-stan.org/t/sampling-method-taking-forever-on-my-macbook-pro/21681/1 "2021-04-03T21:05:35Z")

</div>

I’m following the introductory pystan video on Youtube, and the fitting process is taking forever. I don’t think it should take more than a couple of seconds since the example given on the video is too simple.

I’m using a MacBook Pro, my gcc and pystan versions are 5 and 2.19.1.1

During the video the presenter mentioned a link to find how to proper install pystan on Mac, but I look at every single link and I couldn’t found the instructions.

Any tip?

Best,

MT

---

<div class="post-metadata">

**Author:** ![ariddell](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@ariddell](https://discourse.mc-stan.org/u/ariddell)\
**Post date:** [April 4, 2021, 11:40am UTC](https://discourse.mc-stan.org/t/sampling-method-taking-forever-on-my-macbook-pro/21681/2 "2021-04-04T11:40:32Z")

</div>

Which introductory video?

It would be nice to have a new video which uses PyStan 3. macOS users should not have any problems upgrading.

---

<div class="post-metadata">

**Author:** ![ahartikainen](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/ahartikainen/32/321_2.png) [@ahartikainen](https://discourse.mc-stan.org/u/ahartikainen)\
**Post date:** [April 4, 2021, 12:14pm UTC](https://discourse.mc-stan.org/t/sampling-method-taking-forever-on-my-macbook-pro/21681/3 "2021-04-04T12:14:16Z")

</div>

Can you try with njobs=1? Not sure why, but on osx multiprocessing hangs sometimes. (I think our fork method should fix this issue)

---

<div class="post-metadata">

**Author:** ![motuchsznajder](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/motuchsznajder/32/11178_2.png) [@motuchsznajder](https://discourse.mc-stan.org/u/motuchsznajder)\
**Post date:** [April 4, 2021, 2:35pm UTC](https://discourse.mc-stan.org/t/sampling-method-taking-forever-on-my-macbook-pro/21681/4 "2021-04-04T14:35:17Z")

</div>

Thanks, it worked.
