Python's scipy library was installed successfully, but the error occurred while importing (sub problem: NUMPY+MKL installation failed) __python
Source: Internet
Author: User
1. SciPy Import ErrorToday we're going to install Python's library scipy, http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy Downloads on this page, notice the version, My Python is 3.6.2, the system is Win64 bit, so I downloaded this "SCIPY‑0.19.1‑CP36‑CP36M‑WIN_AMD64.WHL" version. In the cmd command line to run the installation scipy (should be installed it, I use PIP installed, not words on the internet to find ha), installation prompts success, the problem came, I in the shell command line input: Import scipy unexpectedly error:
On-line consultation, presumably to be installed first NUMPY+MKL (note, not numpy, the two different), and in the SciPy download page can also be found: Install NUMPY+MKL before installing
OK, you can only download and install NUMPY+MKL, with address http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
2. Child problem (NUMPY+MKL installation error)Error in Installation NUMPY+MKL:
Check for a long time, can't find the solution, think about, is not the problem of installation sequence, so uninstall scipy, first install NUMPY+MKL, and then reinstall SciPy try.
2.1 Uninstall SciPyIn the cmd command line, proceed to the Python/script path (in fact, the path to the installation of the WHL file) and enter the PIP uninstall scipy:
Finally ask proceed (y/n) and enter "Y" at this point:
Uninstall succeeded
2.2 Reinstall NUMPY+MKL And magically discovered that it worked.
2.3 Reinstall SCIPY (no more steps are added)3. See if you can import scipy in the shell command lineOpen Python shell line, enter import scipy, no error, is the import success.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.