【发布时间】:2014-07-23 00:50:58
【问题描述】:
我正在尝试使用 easy-install 在 Windows 上安装 matplotlib,并且我尝试了 pip,但我收到以下错误,我该如何解决这个问题
错误:安装脚本退出并出现错误:无法初始化编译器实例:您是否安装了 Visual Studio?如果您尝试使用 mingw 构建,请使用 python setup.py 改为构建 -c mingw32 。如果您安装了 Visual Studio,请检查它是 正确安装和正确的版本(VS 2008 用于 python 2.6,VS 2003 用于 2.5等...)。原来的异常是:找不到vcvarsall.bat,编译器类是MSVCCompiler
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "C:\Python26\lib\atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "C:\Python26\lib\multiprocessing\util.py", line 270, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
File "C:\Python26\lib\atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "C:\Python26\lib\multiprocessing\util.py", line 270, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
C:\Python26\Scripts>
【问题讨论】:
-
如果您没有安装编译器并且不想自己编译,您应该从 matplotlib 站点下载一个安装程序 EXE。
标签: python matplotlib python-2.x python-2.6 easy-install