<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export 'CC=gcc -lgcc'
export LDSHARED=&quot;/opt/freeware/lib64/python3.7/config-3.7m/ld_so_aix gcc -bI:/opt/freeware/lib64/python3.7/config-3.7m/python.exp&quot;
export CFLAGS=&quot;-pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts&quot;

# oslevel -s
6100-09-12-1837
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/lto-wrapper
Target: powerpc-ibm-aix6.1.0.0
Configured with: ../gcc-6.3.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=powerpc-ibm-aix6.1.0.0
Thread model: aix
gcc version 6.3.0 (GCC) 
# python -V
Python 3.7.4
# pip list
Package    Version
---------- -------
Cython     0.29.16
numpy      1.16.0 
pip        19.1   
setuptools 40.8.0 


# python3
Python 3.7.4 (default, Nov  7 2019, 21:34:34) 
[GCC 6.3.0] on aix6
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import numpy as np
Traceback (most recent call last):
  File &quot;/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/__init__.py&quot;, line 16, in &lt;module&gt;
    from . import multiarray
  File &quot;/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/multiarray.py&quot;, line 12, in &lt;module&gt;
    from . import overrides
  File &quot;/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/overrides.py&quot;, line 9, in &lt;module&gt;
    from numpy.core._multiarray_umath import add_docstring, ndarray
ImportError:    0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/_multiarray_umath.so.
        0509-026 System error: Cannot run a file that does not have a valid format.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/__init__.py&quot;, line 142, in &lt;module&gt;
    from . import core
  File &quot;/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/__init__.py&quot;, line 47, in &lt;module&gt;
    raise ImportError(msg)
ImportError: 

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

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 /usr/bin/python3),
     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:     0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/_multiarray_umath.so.
        0509-026 System error: Cannot run a file that does not have a valid format."><pre class="notranslate"><code class="notranslate">export 'CC=gcc -lgcc'
export LDSHARED="/opt/freeware/lib64/python3.7/config-3.7m/ld_so_aix gcc -bI:/opt/freeware/lib64/python3.7/config-3.7m/python.exp"
export CFLAGS="-pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts"

# oslevel -s
6100-09-12-1837
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/lto-wrapper
Target: powerpc-ibm-aix6.1.0.0
Configured with: ../gcc-6.3.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=powerpc-ibm-aix6.1.0.0
Thread model: aix
gcc version 6.3.0 (GCC) 
# python -V
Python 3.7.4
# pip list
Package    Version
---------- -------
Cython     0.29.16
numpy      1.16.0 
pip        19.1   
setuptools 40.8.0 


# python3
Python 3.7.4 (default, Nov  7 2019, 21:34:34) 
[GCC 6.3.0] on aix6
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import numpy as np
Traceback (most recent call last):
  File "/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/__init__.py", line 16, in &lt;module&gt;
    from . import multiarray
  File "/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/multiarray.py", line 12, in &lt;module&gt;
    from . import overrides
  File "/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/overrides.py", line 9, in &lt;module&gt;
    from numpy.core._multiarray_umath import add_docstring, ndarray
ImportError:    0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/_multiarray_umath.so.
        0509-026 System error: Cannot run a file that does not have a valid format.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/__init__.py", line 142, in &lt;module&gt;
    from . import core
  File "/opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/__init__.py", line 47, in &lt;module&gt;
    raise ImportError(msg)
ImportError: 

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

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 /usr/bin/python3),
     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:     0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/numpy-1.16.0-py3.7-aix-6.1.egg/numpy/core/_multiarray_umath.so.
        0509-026 System error: Cannot run a file that does not have a valid format.
</code></pre></div>
<p dir="auto">bash-5.0# gcc -v<br>
Using built-in specs.<br>
COLLECT_GCC=gcc<br>
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/lto-wrapper<br>
Target: powerpc-ibm-aix6.1.0.0<br>
Configured with: ../gcc-6.3.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=powerpc-ibm-aix6.1.0.0<br>
Thread model: aix<br>
gcc version 6.3.0 (GCC)<br>
bash-5.0# python -V<br>
Python 3.6.6</p>
<p dir="auto">bash-5.0# python<br>
Python 3.6.6 (default, Jul 11 2018, 05:41:50)<br>
[GCC 6.3.0] on aix6<br>
Type "help", "copyright", "credits" or "license" for more information.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">import numpy<br>
Traceback (most recent call last):<br>
File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/<strong>init</strong>.py", line 16, in <br>
from . import multiarray<br>
File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/multiarray.py", line 12, in <br>
from . import overrides<br>
File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/overrides.py", line 9, in <br>
from numpy.core._multiarray_umath import add_docstring, ndarray<br>
ImportError:    0509-022 Cannot load module /opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/_multiarray_umath.so.<br>
0509-026 System error: Cannot run a file that does not have a valid format.</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/<strong>init</strong>.py", line 142, in <br>
from . import core<br>
File "/opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/<strong>init</strong>.py", line 47, in <br>
raise ImportError(msg)<br>
ImportError:</p>
<p dir="auto">IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!</p>
<p dir="auto">Importing the multiarray numpy extension module failed.  Most<br>
likely you are trying to import a failed build of numpy.<br>
Here is how to proceed:</p>
<ul dir="auto">
<li>If you're working with a numpy git repository, try <code class="notranslate">git clean -xdf</code><br>
(removes all files not under version control) and rebuild numpy.</li>
<li>If you are simply trying to use the numpy version that you have installed:<br>
your installation is broken - please reinstall numpy.</li>
<li>If you have already reinstalled and that did not fix the problem, then:
<ol dir="auto">
<li>
<p dir="auto">Check that you are using the Python you expect (you're using /usr/bin/python),<br>
and that you have no directories in your PATH or PYTHONPATH that can<br>
interfere with the Python and numpy versions you're trying to use.</p>
</li>
<li>
<p dir="auto">If (1) looks fine, you can open a new issue at<br>
<a href="https://github.com/numpy/numpy/issues">https://github.com/numpy/numpy/issues</a>.  Please include details on:</p>
<ul dir="auto">
<li>how you installed Python</li>
<li>how you installed numpy</li>
<li>your operating system</li>
<li>whether or not you have multiple versions of Python installed</li>
<li>if you built from source, your compiler versions and ideally a build log</li>
</ul>
<p dir="auto">Note: this error has many possible causes, so please don't comment on<br>
an existing issue about this - open a new one instead.</p>
</li>
</ol>
</li>
</ul>
<p dir="auto">Original error was:     0509-022 Cannot load module /opt/freeware/lib64/python3.6/site-packages/numpy-1.16.0-py3.6-aix-6.1.egg/numpy/core/_multiarray_umath.so.<br>
0509-026 System error: Cannot run a file that does not have a valid format.</p>