<p dir="auto">Hi, I have a problem with Python and some libraries. Install python from the official website, simply download and install it directly with version 3.7 on my Macbook Pro macOS Catalina version 10.15.4 where through Thonny, I installed the numpy, pandas, matlob and other libraries, I don't have any other python ; but it doesn't work for me and it marks this error.<br>
I tried all the solutions but still not working.</p>
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto">import numpy as np<br>
A=[4,7,8,9,10,4]<br>
B=[3,5,7,8,9,3]<br>
U=[-2,-3,4,5,6,-7,-8,9,10,0]<br>
print(np.add(A,B))<br>
print("Positive",np.positive(U))<br>
print(np.negative(U))<br>
print(np.multiply(A,B))<br>
print(np.multiply(A,3))<br>
print(np.power(B,2))<br>
print(np.subtract(B,A))<br>
print(np.floor_divide(B,2))<br>
print(np.divide(B,10))</p>
<h3 dir="auto">Error message:</h3>
<p dir="auto">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.2" you're trying to use.   2. If (1) looks fine, you can open a new issue at      <a href="https://github.com/numpy/numpy/issues">https://github.com/numpy/numpy/issues</a>.  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 <code class="notranslate">git clean -xdf</code>   (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/cristhianjair/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found.  Did find:        /Users/cristhianjair/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/cristhianjair/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.</p>
<h3 dir="auto">Numpy/Python version information: 3.7</h3>
<p dir="auto">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.</p>
<h3 dir="auto">The code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span></pre></div>
<h3 dir="auto">Error message</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py&quot;, line 24, in &lt;module&gt;
    from . import multiarray
  File &quot;/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/multiarray.py&quot;, line 14, in &lt;module&gt;
    from . import overrides
  File &quot;/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/overrides.py&quot;, line 7, in &lt;module&gt;
    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 &quot;/Users/user/Desktop/asdf.py&quot;, line 1, in &lt;module&gt;
    import numpy as np
  File &quot;/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/__init__.py&quot;, line 142, in &lt;module&gt;
    from . import core
  File &quot;/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py&quot;, line 54, in &lt;module&gt;
    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 &quot;/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/bin/python3.7&quot;,
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version &quot;1.18.1&quot; 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."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 24, in &lt;module&gt;
    from . import multiarray
  File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/multiarray.py", line 14, in &lt;module&gt;
    from . import overrides
  File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/overrides.py", line 7, in &lt;module&gt;
    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 &lt;module&gt;
    import numpy as np
  File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/__init__.py", line 142, in &lt;module&gt;
    from . import core
  File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 54, in &lt;module&gt;
    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.
</code></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">Numpy version 1.18.1<br>
Thonny version 3.2.6<br>
Python version 3.7.6<br>
macOS Catalina 10.15.3</p>

<p dir="auto">Trying</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sys, numpy
print (numpy.__version__, sys.version)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">numpy</span>
<span class="pl-en">print</span> (<span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version</span>)</pre></div>
<p dir="auto">returns the same error as above.</p>
<p dir="auto">Any help is greatly appreciated!</p>