/
usr
/
local
/
lib64
/
python3.6
/
site-packages
/
numpy
/
core
/
/usr/local/lib64/python3.6/site-packages/numpy/core
mkdir
upload
Name
Size
Mode
Actions
include/
-
0755
rm
lib/
-
0755
rm
tests/
-
0755
rm
__pycache__/
-
0755
rm
arrayprint.py
59114
0644
edit
dl
rm
cversions.py
347
0644
edit
dl
rm
defchararray.py
70041
0644
edit
dl
rm
einsumfunc.py
50689
0644
edit
dl
rm
fromnumeric.py
119216
0644
edit
dl
rm
function_base.py
18034
0644
edit
dl
rm
generate_numpy_api.py
7022
0644
edit
dl
rm
getlimits.py
19076
0644
edit
dl
rm
machar.py
10786
0644
edit
dl
rm
memmap.py
11562
0644
edit
dl
rm
multiarray.py
54410
0644
edit
dl
rm
numeric.py
74615
0644
edit
dl
rm
numerictypes.py
16563
0644
edit
dl
rm
overrides.py
7481
0644
edit
dl
rm
records.py
35083
0644
edit
dl
rm
setup.py
42409
0644
edit
dl
rm
setup_common.py
18410
0644
edit
dl
rm
shape_base.py
29014
0644
edit
dl
rm
umath.py
2040
0644
edit
dl
rm
umath_tests.py
389
0644
edit
dl
rm
_add_newdocs.py
202741
0644
edit
dl
rm
_asarray.py
9874
0644
edit
dl
rm
_dtype.py
9820
0644
edit
dl
rm
_dtype_ctypes.py
3673
0644
edit
dl
rm
_exceptions.py
6145
0644
edit
dl
rm
_internal.py
26293
0644
edit
dl
rm
_methods.py
9148
0644
edit
dl
rm
_multiarray_tests.cpython-36m-x86_64-linux-gnu.so
167112
0755
edit
dl
rm
_multiarray_umath.cpython-36m-x86_64-linux-gnu.so
4169248
0755
edit
dl
rm
_operand_flag_tests.cpython-36m-x86_64-linux-gnu.so
13168
0755
edit
dl
rm
_rational_tests.cpython-36m-x86_64-linux-gnu.so
59856
0755
edit
dl
rm
_string_helpers.py
2855
0644
edit
dl
rm
_struct_ufunc_tests.cpython-36m-x86_64-linux-gnu.so
13272
0755
edit
dl
rm
_type_aliases.py
8846
0644
edit
dl
rm
_ufunc_config.py
13821
0644
edit
dl
rm
_umath_tests.cpython-36m-x86_64-linux-gnu.so
27768
0755
edit
dl
rm
__init__.py
4335
0644
edit
dl
rm
Edit:
/usr/local/lib64/python3.6/site-packages/numpy/core/__init__.py
(4335B)
""" Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. Please note that this module is private. All functions and objects are available in the main ``numpy`` namespace - use that instead. """ from numpy.version import version as __version__ import os # disables OpenBLAS affinity setting of the main thread that limits # python threads or processes to one core env_added = [] for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: if envkey not in os.environ: os.environ[envkey] = '1' env_added.append(envkey) try: from . import multiarray except ImportError as exc: import sys msg = """ IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python%d.%d from "%s" * The NumPy version is: "%s" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: %s """ % (sys.version_info[0], sys.version_info[1], sys.executable, __version__, exc) raise ImportError(msg) finally: for envkey in env_added: del os.environ[envkey] del envkey del env_added del os from . import umath # Check that multiarray,umath are pure python modules wrapping # _multiarray_umath and not either of the old c-extension modules if not (hasattr(multiarray, '_multiarray_umath') and hasattr(umath, '_multiarray_umath')): import sys path = sys.modules['numpy'].__path__ msg = ("Something is wrong with the numpy installation. " "While importing we detected an older version of " "numpy in {}. One method of fixing this is to repeatedly uninstall " "numpy until none is found, then reinstall this version.") raise ImportError(msg.format(path)) from . import numerictypes as nt multiarray.set_typeDict(nt.sctypeDict) from . import numeric from .numeric import * from . import fromnumeric from .fromnumeric import * from . import defchararray as char from . import records as rec from .records import * from .memmap import * from .defchararray import chararray from . import function_base from .function_base import * from . import machar from .machar import * from . import getlimits from .getlimits import * from . import shape_base from .shape_base import * from . import einsumfunc from .einsumfunc import * del nt from .fromnumeric import amax as max, amin as min, round_ as round from .numeric import absolute as abs # do this after everything else, to minimize the chance of this misleadingly # appearing in an import-time traceback from . import _add_newdocs # add these for module-freeze analysis (like PyInstaller) from . import _dtype_ctypes from . import _internal from . import _dtype from . import _methods __all__ = ['char', 'rec', 'memmap'] __all__ += numeric.__all__ __all__ += fromnumeric.__all__ __all__ += rec.__all__ __all__ += ['chararray'] __all__ += function_base.__all__ __all__ += machar.__all__ __all__ += getlimits.__all__ __all__ += shape_base.__all__ __all__ += einsumfunc.__all__ # Make it possible so that ufuncs can be pickled # Here are the loading and unloading functions # The name numpy.core._ufunc_reconstruct must be # available for unpickling to work. def _ufunc_reconstruct(module, name): # The `fromlist` kwarg is required to ensure that `mod` points to the # inner-most module rather than the parent package when module name is # nested. This makes it possible to pickle non-toplevel ufuncs such as # scipy.special.expit for instance. mod = __import__(module, fromlist=[name]) return getattr(mod, name) def _ufunc_reduce(func): from pickle import whichmodule name = func.__name__ return _ufunc_reconstruct, (whichmodule(func, name), name) import copyreg copyreg.pickle(ufunc, _ufunc_reduce, _ufunc_reconstruct) # Unclutter namespace (must keep _ufunc_reconstruct for unpickling) del copyreg del _ufunc_reduce from numpy._pytesttester import PytestTester test = PytestTester(__name__) del PytestTester
Save
cmd:
run