[英]matplotlib issues installing on windows
我正在尝试使用easy-install
在 windows 上安装matplotlib
并且我也尝试了pip
,但我收到以下错误,我该如何解决这个问题
错误:安装脚本退出并出现错误:无法初始化编译器实例:您是否安装了 Visual Studio? 如果您尝试使用 mingw 构建,请改用 python setup.py build -c mingw32。 如果您安装了 Visual Studio,请检查它是否正确安装,以及正确的版本(VS 2008 for python 2.6,VS 2003 for 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>
在大多数情况下,在 Windows 上编译 C 扩展需要 VisualStudio Express,这绝非易事。 相反,您可以将 Python 版本的二进制包下载到本地目录并使用easy_install
安装,如下所示:
easy_install "C:\path_to_local_binary_dir\matplotlib-1.3.1-win-xxx.exe"
(替换为完整路径/文件名)。 这不会出现在添加/删除程序中,也适用于虚拟环境。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.