Issue 1:
problem description

I was trying to learn lambda function of AWS, I packaged library and source code to a deployment package and upload thme, so I can invoke it .however ,when it comes to the matmul function ,it didn't work, I had try third version of numpy, none of them works, python version is python3.7, numpy version is 1.16,1.18,1.19. the lambda code is very esay,matmul function

import numpy as np
from time import time

def matmul(n):
A = np.random.rand(n, n)
B = np.random.rand(n, n)

start = time()
C = np.matmul(A, B)
latency = time() - start
return latency

def lambda_handler(event, context):
n = int(event['n'])
result = matmul(n)
print(result)
return result

and this is the log cotent

[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function':

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 "/var/lang/bin/python3.7",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.18.0" 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: No module named 'numpy.core._multiarray_umath'

END RequestId: c4fc9fea-2802-4ff0-b41c-ec014cad474b
REPORT RequestId: c4fc9fea-2802-4ff0-b41c-ec014cad474b	Duration: 1.57 ms	Billed Duration: 100 ms	Memory Size: 128 MB	Max Memory Used: 50 MB

is there anybody has idea?

Issue 2:
how you installed Python

deleted python3 on my mac and then brew install python to install python 3.7.3

how you installed numpy

Since I am installing to run on AWS Lambda, pip install numpy --target .

your operating system

macOS Sierra 10.12.6

whether or not you have multiple versions of Python installed

the native python 2.7.10 is still installed on my mac

if you built from source, your compiler versions and ideally a build log

N/A

So I am able to run my code locally and I have no issues. I am pandas, matplotlib, boto3, and mpld3 to organize and display data in an AWS DDB table with matplotlib graphs that mpld3 turns into html. numpy appears to be needed for pandas, and whenever I try to install these libraries to a target directory so they can run in a lambda function, according to https://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html, I get the following error:

Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
Here is how to proceed:
- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.
- If you are simply trying to use the numpy version that you have installed:
your installation is broken - please reinstall numpy.
- If you have already reinstalled and that did not fix the problem, then:
1. Check that you are using the Python you expect (you're using /var/lang/bin/python3.6),
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy versions 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

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: No module named 'numpy.core._multiarray_umath'

END RequestId: 2fc65f50-420d-441b-930c-665b1c8ab3ea
REPORT RequestId: 2fc65f50-420d-441b-930c-665b1c8ab3ea	Duration: 0.85 ms	Billed Duration: 100 ms	Memory Size: 128 MB	Max Memory Used: 40 MB	```