Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3275264
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:07:29+00:00 2026-05-17T19:07:29+00:00

Whenever I try importing numpy in my new installation of Eclipse and Pydev, I

  • 0

Whenever I try importing numpy in my new installation of Eclipse and Pydev, I get the following error:

Traceback (most recent call last):
  File "Q:\temp\test.py", line 1, in <module>
    import numpy
  File "C:\Python26\lib\site-packages\numpy\__init__.py", line 132, in <module>
    import add_newdocs
  File "C:\Python26\lib\site-packages\numpy\add_newdocs.py", line 9, in <module>
    from lib import add_newdoc
  File "C:\Python26\lib\site-packages\numpy\lib\__init__.py", line 4, in <module>
    from type_check import *
  File "C:\Python26\lib\site-packages\numpy\lib\type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "C:\Python26\lib\site-packages\numpy\core\__init__.py", line 13, in <module>
    import defchararray as char
  File "C:\Python26\lib\site-packages\numpy\core\defchararray.py", line 23, in <module>
    from numpy.core.multiarray import _vec_string
ImportError: cannot import name _vec_string

However, in a vanila python console and in IPython, import is successful

Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>

Q:\Groups\Bioinformatics\HPLCautomatization\autohplc>ipython
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [2]: import numpy

To make stuff even more complicated, in another Eclipse workspace, this import works fine. Restarting eclipse didn’t help. I also tried to re-config the interpreter in Preferences->python->interpreter->python (as in this question), but the problem still exists

Two additional similar problems were described on SO (this and this), but both of them were observed with IronPython and I couldn’t find anything I could use in the few answers that were provided.

EDIT As suggested by dutt, I checked Preferences->Pydev->Interpreter python->libraries in both the tested workspaces (the working one and the one that doesn’t). The malfunctioning workspace contained the following library in system libs C:\Python26\lib\site-packages\numpy-1.5.0-py2.6-win32.egg . On the other hand, the working workspace doesn’t list any numpy library in its system libraries list. I have removed the above library from the list in the not working workspace.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:07:30+00:00Added an answer on May 17, 2026 at 7:07 pm

    (Assuming you’r using PyDev) Look in Preferences->Pydev->Interpreter-Python->Libaries, you may have to add NumPy there. Should be located in your python/lib/site-packages folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the above error whenever I try and use ActionLink ? I've only
Whenever I try to add a new project to my SourceSafe repository it creates
Whenever I try to install a Click Once application, I always get a 404
whenever I try to run something in Java, Eclipse changes into the PHP perspective.
Whenever I try to write graphical programs (whether a game or really any GUI
Whenever I try to copy an entire working copy using simple drag and drop
Why in Windows, can't you name a folder 'con'? Whenever I try to name
Whenever I design a database, I always wonder if there is a best way
Whenever I indent HTML in PHP mode, emacs (22.1.1, basic install on Redaht Linux
Whenever I type a (, [, or {, Notepad++ completes it with the corresponding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.