[英]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.