Error Importing Numpy
I have strange error, when I try to import numpy: Traceback (most recent call last): File '/home/timo/malltul/mafet/src/mafet/core/pattern.py', line 7, in impo
Solution 1:
I doubt this has anything to do with your core
module or with numpy
.
From the stack trace, it would appear that the problem is with the tokenize
module, which is part of Python, not part of numpy
. Tokenize
does from token import *
and then uses N_TOKENS
that's defined in token.py
.
First of all, I'd check that there's no stray module called token
on your PYTHONPATH
:
>>>import token>>>token.__file__
'/usr/lib/python2.6/token.pyc'
If this picks up the above file yet you still get the problem, I'd suggest reinstalling Python.
Post a Comment for "Error Importing Numpy"