error during import of tabulate

1,034 views
Skip to first unread message

vikrant...@gmail.com

unread,
Dec 20, 2015, 4:04:57 AM12/20/15
to lasagne-users

I am getting below error while doing the below import in python. i have freshly installed theano, lasange and nolearn. i have separately installed tabulate(pip install tabulate) also but still facing the same issue please help.


from nolearn.lasagne import NeuralNet


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-9-cb9511877fcf> in <module>()
      5 from lasagne.updates import nesterov_momentum
      6 #from tabulate import tabulate
----> 7 from nolearn.lasagne import NeuralNet

C:\Users\Admin\Anaconda\lib\site-packages\nolearn\lasagne\__init__.py in <module>()
----> 1 from .handlers import (
      2     PrintLayerInfo,
      3     PrintLog,
      4     RememberBestWeights,
      5     SaveWeights,

C:\Users\Admin\Anaconda\lib\site-packages\nolearn\lasagne\handlers.py in <module>()
      7 
      8 import numpy
----> 9 from tabulate import tabulate
     10 
     11 from .._compat import pickle

ImportError: No module named tabulate

goo...@jan-schlueter.de

unread,
Dec 21, 2015, 7:12:02 AM12/21/15
to lasagne-users
I don't really have a clue how things are on Windows, but it seems tabulate is not in your Python path. Can you check whether it was installed to "C:\Users\Admin\Anaconda\lib\site-packages\" along with the others, or copy/move it there? Alternatively, try "python -c import sys; print '\r\n'.join(sys.path)" to check which directories are in your Python path and figure out how to install it to one of these locations.

Best, Jan
Reply all
Reply to author
Forward
0 new messages