有谁能告诉我应该下载哪些文件,必须在命令行中执行哪些语句才能安装Matplotlib吗?
我的Python2.7.13在Windows10 64位上。
这些是我解压缩的文件:
我执行的命令:python -m pip install -U pip setuptools
python -m pip install matplotlib
python -m pip install -U pip
我在检查是否安装了Numpy和Matplotlib时遇到这两个错误。>>> import numpy
**Traceback (most recent call last):
File "", line 1, in
import numpy
File "numpy\__init__.py", line 142, in
from . import add_newdocs
File "numpy\add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "numpy\lib\__init__.py", line 8, in
from .type_check import *
File "numpy\lib\type_check.py", line 11, in
import numpy.core.numeric as _nx
File "numpy\core\__init__.py", line 26, in
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: DLL load failed: %1 no es una aplicación Win32 válida.**
>>> import matplotlib
Traceback (most recent call last):
File "", line 1, in
import matplotlib
File "matplotlib\__init__.py", line 122, in
from matplotlib.cbook import is_string_like, mplDeprecation, dedent, get_label
File "matplotlib\cbook.py", line 33, in
import numpy as np
File "numpy\__init__.py", line 142, in
from . import add_newdocs
File "numpy\add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "numpy\lib\__init__.py", line 8, in
from .type_check import *
File "numpy\lib\type_check.py", line 11, in
import numpy.core.numeric as _nx
File "numpy\core\__init__.py", line 26, in
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: DLL load failed: %1 no es una aplicación Win32 válida.