Issue 1:
I'm getting a numpy error trying to install scipy. I get the same numpy error trying to install pandas, so I assume the problem is with numpy. I've tried reinstalling numpy and Python.

IBM i

numpy 1.14.4 (installed via pip3)

Python 3.6.5-1 (installed via yum)

-bash-4.3$ pip3 install scipy

Collecting scipy

Using cached https://files.pythonhosted.org/packages/07/76/7e844757b9f3bf5ab9f951ccd3e4a8eed91ab8720b0aac8c2adcc2fdae9f/scipy-1.1.0.tar.gz

Requirement already satisfied: numpy>=1.8.2 in /QOpenSys/pkgs/lib/python3.6/site-packages (from scipy)

Installing collected packages: scipy

Running setup.py install for scipy ... error

Complete output from command /QOpenSys/pkgs/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c46gpjy8/scipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mgpugb72-record/install-record.txt --single-version-externally-managed --compile:

Note: if you need reliable uninstall behavior, then install

with pip instead of using `setup.py install`:

- `pip install .` (from a git repo or downloaded source

release)

- `pip install scipy` (last SciPy release on PyPI)

Traceback (most recent call last):

File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in <module>

from . import multiarray

ImportError: Could not load module /QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/multiarray.so.

The local-exec model was used for thread-local

storage, but the module is not the main program.

Examine the .loader section header with the 'dump -Hv' command.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "<string>", line 1, in <module>

File "/tmp/pip-build-c46gpjy8/scipy/setup.py", line 474, in <module>

setup_package()

File "/tmp/pip-build-c46gpjy8/scipy/setup.py", line 450, in setup_package

from numpy.distutils.core import setup

File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>

from . import add_newdocs

File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/add_newdocs.py", line 13, in <module>

from numpy.lib import add_newdoc

File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/lib/__init__.py", line 8, in <module>

from .type_check import *

File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/lib/type_check.py", line 11, in <module>

import numpy.core.numeric as _nx

File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/__init__.py", line 26, in <module>

raise ImportError(msg)

ImportError:

Importing the multiarray numpy extension module failed. Most

likely you are trying to import a failed build of numpy.

If you're working with a numpy git repo, try `git clean -xdf` (removes all

files not under version control). Otherwise reinstall numpy.

Original error was: Could not load module /QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/multiarray.so.

The local-exec model was used for thread-local

storage, but the module is not the main program.

Examine the .loader section header with the 'dump -Hv' command.

----------------------------------------

Command "/QOpenSys/pkgs/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-c46gpjy8/scipy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-mgpugb72-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-c46gpjy8/scipy/

Issue 2:
Platform: AIX

Version: 7.1

Python 3.6.5 from Bulls' Freeware

pip 19.2.3 from /opt/freeware/lib/python3.6/site-packages/pip (python 3.6)

numpy 1.17.2

Issue: Numpy installs but does not import.

Error on import:

Original error was: Could not load module /opt/freeware/lib64/python3.6/site-packages/numpy/core/_multiarray_umath.so.

The local-exec model was used for thread-local

storage, but the module is not the main program.

Examine the .loader section header with the 'dump -Hv' command.

Reproducing code example:

import numpy as np

### Error message:
### Numpy/Python version information:

<!-- Output from 'import sys, numpy; print(numpy.__version__, sys.version)' -->
>>> import sys, numpy; print(numpy.__version__, sys.version)
Traceback (most recent call last):
File "/opt/freeware/lib64/python3.6/site-packages/numpy/core/__init__.py", line 17, in <module>
from . import multiarray
File "/opt/freeware/lib64/python3.6/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File "/opt/freeware/lib64/python3.6/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: Could not load module /opt/freeware/lib64/python3.6/site-packages/numpy/core/_multiarray_umath.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/freeware/lib64/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/opt/freeware/lib64/python3.6/site-packages/numpy/core/__init__.py", line 47, 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.6 from "/usr/bin/python",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.17.2" 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: Could not load module /opt/freeware/lib64/python3.6/site-packages/numpy/core/_multiarray_umath.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.

>>>