Issue 1:
Hello, I had this error after running my code. Could you help me?

Reproducing code example:

import numpy

Error message:

ImportError:

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

Importing the numpy c-extensions failed.

Try uninstalling and reinstalling numpy.

-->Done

If you have already done that, then:

Check that you expected to use Python3.7 from "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/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.2" you're trying to use.

--> looks fine

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

-->It was installed directly with Thonny

how you installed numpy

--->In Thonny, in Manage packages

your operating system

--->MacOs Catalina 10.15.4

whether or not you have multiple versions of Python installed

--->No

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

--->Not from source

If you're working with a numpy git repository, try git clean -xdf

(removes all files not under version control) and rebuild numpy.

Original error was: dlopen(/Users/gaelpacker/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found. Did find:

/Users/gaelpacker/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/gaelpacker/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

Numpy/Python version information:

Numpy 1.18.2/Python 3.7

Issue 2:
I'm very new to coding. Installed numpy using the built-in package manager of Thonny. Thonny comes bundled with Python 3.7. Also installed scipy that way, seems to be importing fine.

The code

import numpy as np

Error message

Traceback (most recent call last):
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 24, in <module>
from . import multiarray
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: dlopen(/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found. Did find:
/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/user/Desktop/asdf.py", line 1, in <module>
import numpy as np
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 54, in <module>
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 "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/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.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: dlopen(/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found. Did find:
/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

Numpy/Python version information:

Numpy version 1.18.1

Thonny version 3.2.6

Python version 3.7.6

macOS Catalina 10.15.3

Trying

import sys, numpy
print (numpy.__version__, sys.version)

returns the same error as above.

Any help is greatly appreciated!