Skip to content

Importing the numpy c-extensions failed. #16235

@Rich133

Description

@Rich133

Python Code:

height = [1.87, 1.87, 1.82, 1.91, 1.90, 1.85]
weight = [81.65, 97.52, 95.25, 92.98, 86.18, 88.45]

import numpy as np

np_height = np.array(height)
np_weight = np.array(weight)

Error message:

Traceback (most recent call last):
File "C:\Users\rsjar\anaconda3\lib\site-packages\numpy\core_init_.py", line 24, in
from . import multiarray
File "C:\Users\rsjar\anaconda3\lib\site-packages\numpy\core\multiarray.py", line 14, in
from . import overrides
File "C:\Users\rsjar\anaconda3\lib\site-packages\numpy\core\overrides.py", line 7, in
from numpy.core._multiarray_umath import (
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\EclipseWorkspaces\csse120\DEP_Printout\src\DEP_Printout.py", line 12, in
import numpy as np
File "C:\Users\rsjar\anaconda3\lib\site-packages\numpy_init_.py", line 142, in
from . import core
File "C:\Users\rsjar\anaconda3\lib\site-packages\numpy\core_init_.py", line 54, in
raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.

  • Try uninstalling and reinstalling numpy.

  • If you have already done that, then:

    1. Check that you expected to use Python3.7 from "C:\Users\rsjar\anaconda3\python.exe",
      and that you have no directories in your PATH or PYTHONPATH that can
      interfere with the Python and numpy version "1.18.1" you're trying to use.
    2. If (1) looks fine, you can open a new issue at
      https://github.com/numpy/numpy/issues. Please include details on:
      • how you installed Python
      • how you installed numpy
      • your operating system
      • whether or not you have multiple versions of Python installed
      • if you built from source, your compiler versions and ideally a build log
  • If you're working with a numpy git repository, try git clean -xdf
    (removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: DLL load failed: The specified module could not be found.

Numpy/Python version information:

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)]

Numpy 1.18.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    32 - InstallationProblems installing or compiling NumPy57 - Close?Issues which may be closable unless discussion continued

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions