# Problem using theano library for testing

**URL:** <https://discuss.circleci.com/t/problem-using-theano-library-for-testing/3581>\
**Category:** Build Environment\
**Created:** [April 23, 2016, 9:34pm UTC](https://discuss.circleci.com/t/problem-using-theano-library-for-testing/3581 "2016-04-23T21:34:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon-Prevoteaux](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Simon-Prevoteaux](https://discuss.circleci.com/u/Simon-Prevoteaux)\
**Post date:** [April 23, 2016, 9:34pm UTC](https://discuss.circleci.com/t/problem-using-theano-library-for-testing/3581/1 "2016-04-23T21:34:52Z")

</div>

Hi,

First of all thank you for reading and try yo help me.

I’m trying to use this circle.yml file :

machine:  
environment:  
# We need to set this variable to let python see the package installed through apt-get  
PYTHONPATH: "/usr/lib/python2.7/dist-packages:/home/ubuntu/.local/lib/python2.7/site-packages/"  
dependencies:

# Various dependencies

pre:  
- sudo apt-get update  
- sudo apt-get install libatlas-dev libatlas3gf-base  
- sudo apt-get install build-essential python-dev python-setuptools  
- sudo apt-get install python-numpy python-scipy python-dev python-matplotlib  
- sudo apt-get install python-nose python-coverage python-sklearn  
- sudo apt-get install python-sphinx python-pip  
#- sudo -H pip install awsebcli --upgrade --ignore-installed  
#- sudo pip install --upgrade ndg-httpsclient  
- sudo pip install theano==0.7.0

# The --user is needed to let sphinx see the source and the binaries

# The pipefail is requested to propagate exit code

override:  
- python [setup.py](http://setup.py) install  
- set -o pipefail && cd doc && make html 2\>&1 | tee ~/log.txt  
test:

# Grep error on the documentation

override:  
- cat ~/log.txt && if grep -q “Traceback (most recent call last):” ~/log.txt; then false; else true; fi  
general:

# Open the doc to the API

artifacts:  
- “doc/\_build/html”  
- “~/log.txt”

# Restrict the build to the branch master only

#branches:

# only:

# - master

But when launching the $**python [setup.py](http://setup.py) install**, i get this :

Traceback (most recent call last):  
File “[setup.py](http://setup.py)”, line 1, in   
import crino  
File “/home/ubuntu/crino/crino/ **init**.py”, line 55, in   
import crino.criterion  
File “/home/ubuntu/crino/crino/criterion.py”, line 38, in   
import theano.tensor as T  
ImportError: No module named theano.tensor

So here is my question, why doesn’t he find theano ?

Thank you for your help

Simon

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:38am UTC](https://discuss.circleci.com/t/problem-using-theano-library-for-testing/3581/2 "2018-06-18T11:38:16Z")

</div>


