# Updates Theano for Latest Numpy

**URL:** <https://discourse.pymc.io/t/updates-theano-for-latest-numpy/12155>\
**Category:** Development\
**Tags:** theano\
**Created:** [May 18, 2023, 6:40am UTC](https://discourse.pymc.io/t/updates-theano-for-latest-numpy/12155 "2023-05-18T06:40:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbaggens](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@pbaggens](https://discourse.pymc.io/u/pbaggens)\
**Post date:** [May 18, 2023, 6:40am UTC](https://discourse.pymc.io/t/updates-theano-for-latest-numpy/12155/1 "2023-05-18T06:40:49Z")

</div>

Since I need fast computing and the Theano gpuarray was so fast, I have been maintaining Theano, and have kept it up to date so that it works with latest Numpy (\> 1.23.5), Scipy. If anyone is interested, contact me and I will make it available as a tar archive. Every change I made is marked with my initials ‘PMB’. Perhaps someone could clean it up and update the Theano Github, but I have no time for that, but would gladly provide the code.

---

<div class="post-metadata">

**Author:** ![pbaggens](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@pbaggens](https://discourse.pymc.io/u/pbaggens)\
**Post date:** [May 19, 2023, 6:05am UTC](https://discourse.pymc.io/t/updates-theano-for-latest-numpy/12155/2 "2023-05-19T06:05:57Z")

</div>

I have uploaded the archives to [Index of /theano](http://class-specific.com/theano). There are two archives: theano\_1.0.5-pmb.tgz, and theano\_1.0.5-pymc.tgz, corresponding to the latest theano releases I could find from regular and PyMC theano, repspectively. Both have been tested with GPU functionality using Numpy 1.24.2 as well as CUDA-12. Note: all the changes have been marked with ‘PMB’ so can easily be found. This applies as well to some C-code, notably gpuarray/c\_code/dnn\_fwd.c, gpuarray/c\_code/dnn\_gw.c, gpuarray/c\_code/dnn\_gi.c.

---

<div class="post-metadata">

**Author:** ![pinacate](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/pinacate/32/6695_2.png) [@pinacate](https://discourse.pymc.io/u/pinacate)\
**Post date:** [June 16, 2023, 12:47am UTC](https://discourse.pymc.io/t/updates-theano-for-latest-numpy/12155/3 "2023-06-16T00:47:07Z")

</div>

Thanks for doing this. How best to install this archive?

I tried “pip3 install theano\_1.0.5-pmb.tgz”  
and got  
“does not appear to be a Python project: neither ‘setup.py’ nor ‘pyproject.toml’ found”

---

<div class="post-metadata">

**Author:** ![pbaggens](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@pbaggens](https://discourse.pymc.io/u/pbaggens)\
**Post date:** [June 16, 2023, 4:48am UTC](https://discourse.pymc.io/t/updates-theano-for-latest-numpy/12155/4 "2023-06-16T04:48:52Z")

</div>

Hi, it’s a TAR archive. You need to use tar to extract it. I assume you are using linux?  
"tar xvzf theano\_1.0.5-pmb.tgz " will do it. Then you will have to make sure this  
appears as a directory “theano” in your python path.

---

<div class="post-metadata">

**Author:** ![pinacate](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/pinacate/32/6695_2.png) [@pinacate](https://discourse.pymc.io/u/pinacate)\
**Post date:** [June 17, 2023, 1:19am UTC](https://discourse.pymc.io/t/updates-theano-for-latest-numpy/12155/5 "2023-06-17T01:19:17Z")

</div>

Thanks!
