diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-04-18 16:02:19 -0500 |
|---|---|---|
| committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-04-28 11:16:27 -0500 |
| commit | d530d23b0fc792e63cca97d88799b5fecac805ef (patch) | |
| tree | 7c74ba51dae22cd531f19db791cfaa59b381884b /numpy/core | |
| parent | 11c1e161be588da14a501f54d8a3974bee7a03f3 (diff) | |
| download | numpy-d530d23b0fc792e63cca97d88799b5fecac805ef.tar.gz | |
DOC: Change import error "howto" to link to troubleshooting docs
This makes the C-API failed to load import error link to a new
troubleshooting document in the user documentation. It links
to the devdocs directly, since it should be possible to update the
information at any time (e.g. when a new setup starts making issues).
As these are not NumPy issues, their occurance is not tied to the
NumPy release process.
Diffstat (limited to 'numpy/core')
| -rw-r--r-- | numpy/core/__init__.py | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/numpy/core/__init__.py b/numpy/core/__init__.py index c2d53fe3e..f4e44640f 100644 --- a/numpy/core/__init__.py +++ b/numpy/core/__init__.py @@ -26,25 +26,21 @@ except ImportError as exc: 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 Python%d.%d from "%s", - and that you have no directories in your PATH or PYTHONPATH that can - interfere with the Python and numpy version "%s" 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. +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.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 above linked wiki page for further help. Original error was: %s """ % (sys.version_info[0], sys.version_info[1], sys.executable, |
