Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named theano #33

Open
quintendewilde opened this issue Oct 15, 2017 · 3 comments
Open

No module named theano #33

quintendewilde opened this issue Oct 15, 2017 · 3 comments

Comments

@quintendewilde
Copy link

I'm giving this project a 3third try. Even installed ubuntu on my Imac for this.

After installing all dependencies and adjusting the config.py file (except for two lines I don't know what to place in)
# Skip-thoughts paths['skmodels'] = '/u/rkiros/public_html/models/' paths['sktables'] = '/u/rkiros/public_html/models/'
But that's not the problem for now, I get a import theano error. Even though i've installed it via conda.

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-e2356e8a9459> in <module>()
----> 1 import generate

/home/quinten/Documents/neuralstory/neural-storyteller-master/generate.py in <module>()
      8 import skimage.transform
      9 
---> 10 import skipthoughts
     11 import decoder
     12 import embedding

/home/quinten/Documents/neuralstory/neural-storyteller-master/skipthoughts.py in <module>()
      4 import os
      5 
----> 6 import theano
      7 import theano.tensor as tensor
      8 

ImportError: No module named theano

conda list theano gives = theano 0.9.0 py27_0

any help would be appriciated!

@cuuupid
Copy link

cuuupid commented Nov 25, 2017

If you run python -c "import theano" what is the output?

Make sure you're running Anaconda python (if you type python and hit enter it should have a preface about Anaconda).

Also--Theano is now at 1.0 and pip install theano should work as well (you will likely need BLAS, I recommend conda install mkl-service as OpenBLAS is a pain to install).

@LucasYEAST
Copy link

I'm encountering the same issue. First tried to install theano using conda install. This gave me version 0.9. Next, I uninstalled that version and installed version 1.0 using pip install theano==1.0 within a conda environment. Now I can't seem to import theano.
Running python -c "import theano" gives the same output:

File "<string>", line1, in <module>
    ImportError: No module named theano

@cuuupid
Copy link

cuuupid commented Dec 25, 2017

Try running:

pip install theano; python -c "import theano"

Should work, otherwise pip and python are pointing to two different versions/site_modules. Btw--a pip install in an anaconda environment will not work anywhere outside of that environment. I recommend keeping all your AI in a separate environment and working only within that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants