# WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.--------\>HELP!

**URL:** <https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228>\
**Category:** Questions\
**Created:** [May 9, 2019, 10:20am UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228 "2019-05-09T10:20:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nandita\_Khetan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/nandita_khetan/32/1848_2.png) [@Nandita\_Khetan](https://discourse.pymc.io/u/Nandita_Khetan)\
**Post date:** [May 9, 2019, 10:20am UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/1 "2019-05-09T10:20:59Z")

</div>

Hello,  
I am trying to run a pymc3 script for parameter estimation. It is giving me these warnings:  
WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.  
WARNING (theano.gof.compilelock): Overriding existing lock by dead process ‘9269’ (I am process ‘11498’)  
I am using python ---- 3.7  
pymc3----3.6  
theano ---- 1.0.3 versions.  
I am fairly new to coding and need some help to resolve this.  
Any help is much appreciated.  
Thank you.

---

<div class="post-metadata">

**Author:** ![lucianopaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/lucianopaz/32/2186_2.png) [@lucianopaz](https://discourse.pymc.io/u/lucianopaz)\
**Post date:** [May 9, 2019, 12:34pm UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/2 "2019-05-09T12:34:05Z")

</div>

Hi @Nandita_Khetan. The first warning is telling you that `theano` will run slower because it did not find some libraries installed that help it go faster. You can get these in different ways depending on your operating system and on how you installed theano and pymc3. Are you using windows, mac or another unix operating system? Did you install pymc3 using conda or pip?

The second warning is nothing to be alarmed about. The model’s `logp` in pymc3 gets compiled by theano. This happens a few times while preparing for sampling. This compilation happens mostly in parallel but there’s a point at which a single process is allowed to be running the compilation (compilelock). When that happens, the other processes have to wait in a queue for the others to finish, and print out the warning you see.

---

<div class="post-metadata">

**Author:** ![Nandita\_Khetan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/nandita_khetan/32/1848_2.png) [@Nandita\_Khetan](https://discourse.pymc.io/u/Nandita_Khetan)\
**Post date:** [May 9, 2019, 2:58pm UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/3 "2019-05-09T14:58:36Z")

</div>

HI. Thanks for help.  
I have mac OS Mojave. I installed Pymc3 using conda. I updated my theano and i got rid of the first warning. I restarted my PC and got rid of the second one. However now I am getting this while trying to run the code:  
AttributeError: module ‘theano’ has no attribute ‘gof’  
:(…any insight??

---

<div class="post-metadata">

**Author:** ![lucianopaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/lucianopaz/32/2186_2.png) [@lucianopaz](https://discourse.pymc.io/u/lucianopaz)\
**Post date:** [May 10, 2019, 4:53am UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/4 "2019-05-10T04:53:38Z")

</div>

You broke your theano installation with the update. I suggest you start out in a new conda env, or uninstall everything from the env you were working with and run the following, which I looked up [here](http://deeplearning.net/software/theano_versions/dev/install_macos.html):

```auto
conda install numpy scipy mkl
conda install theano pygpu
conda install pymc3

```

---

<div class="post-metadata">

**Author:** ![kumarnikhil936](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/kumarnikhil936/32/3600_2.png) [@kumarnikhil936](https://discourse.pymc.io/u/kumarnikhil936)\
**Post date:** [January 25, 2021, 12:02pm UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/5 "2021-01-25T12:02:28Z")

</div>

Hey, this solved it for me. Thanks.

---

<div class="post-metadata">

**Author:** ![MouradGHACHOUI](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/mouradghachoui/32/3786_2.png) [@MouradGHACHOUI](https://discourse.pymc.io/u/MouradGHACHOUI)\
**Post date:** [March 14, 2021, 7:16pm UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/6 "2021-03-14T19:16:39Z")

</div>

HI,  
Please, How can I fix the same problem on UBUNTU?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![rosgori](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/rosgori/32/1077_2.png) [@rosgori](https://discourse.pymc.io/u/rosgori)\
**Post date:** [March 14, 2021, 9:02pm UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/8 "2021-03-14T21:02:59Z")

</div>

Install the correct versions of `Theano` and `pymc3` . Which versions do you have? In fact, what errors do you see?

---

<div class="post-metadata">

**Author:** ![sammosummo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/sammosummo/32/96_2.png) [@sammosummo](https://discourse.pymc.io/u/sammosummo)\
**Post date:** [July 19, 2021, 2:56pm UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/9 "2021-07-19T14:56:32Z")

</div>

> [@lucianopaz](#):
>
> `conda install theano pygpu`

FYI: This doesn’t work any more. Conda won’t install Theano or PyGPU after NumPy, Scipy, etc.

---

<div class="post-metadata">

**Author:** ![karimkhani](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/karimkhani/32/4329_2.png) [@karimkhani](https://discourse.pymc.io/u/karimkhani)\
**Post date:** [August 5, 2021, 9:48am UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/10 "2021-08-05T09:48:25Z")

</div>

Hi  
Please Help me. I have this problem in Win7-64b os.  
and I am using Python 3.8.  
Thanks

---

<div class="post-metadata">

**Author:** ![Lukebetham](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/lukebetham/32/6875_2.png) [@Lukebetham](https://discourse.pymc.io/u/Lukebetham)\
**Post date:** [August 16, 2022, 2:10pm UTC](https://discourse.pymc.io/t/warning-theano-tensor-blas-using-numpy-c-api-based-implementation-for-blas-functions-help/3228/11 "2022-08-16T14:10:24Z")

</div>

If anyone is having this issue on Ubuntu - for me what fixed it was just updating and installing the dependencies needed:  
Update:

```auto
sudo apt-get update

```

OpenBLAS:

```auto
sudo apt-get install libopenblas-dev

```

G++:

```auto
sudo apt install build-essential
sudo apt -y install g++-9 

```

pygpu:

```auto
sudo apt-get install python3-pygpu 

```
