Hi I have a problem with installation of numpy ! I followed the instructions from the page of scipy and tried
sudo apt-get install python-numpy python-scipy too.
It shows this message:

blago@blago-laptop:~$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/numpy/__init__.py", line 136, in <module>
    import add_newdocs
  File "/usr/local/lib/python2.6/dist-packages/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.6/dist-packages/numpy/lib/__init__.py", line 4, in <module>
    from type_check import *
  File "/usr/local/lib/python2.6/dist-packages/numpy/lib/type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "/usr/local/lib/python2.6/dist-packages/numpy/core/__init__.py", line 13, in <module>
    import defchararray as char
  File "/usr/local/lib/python2.6/dist-packages/numpy/core/defchararray.py", line 23, in <module>
    from numpy.core.multiarray import _vec_string
ImportError: cannot import name _vec_string
>>>

Can you help me???

From the Python documentation:

exception ImportError
Raised when an import statement fails to find the module definition or when a from ... import fails to find a name that is to be imported.

In numpy/core/multiarray.py, is there a symbol named _vec_string?

Is it a version of numpy under development?
If you use a previous version of numpy, is the import error still there?
Have you contacted authors of numpy about this problem?

This article has been dead for over six months. Start a new discussion instead.