Installing statsmodels — statsmodels | Statsmodels

Skiptocontentstatsmodelsv0.12.2statsmodelsInstallingstatsmodelsInstallingstatsmodelsContentsInstallingstatsmodelsPythonSupportAnacondaPyPI(pip)ObtainingtheSourceInstallationfromSourceCompilersLinuxWindowsMacDependenciesOptionalDependenciesShowSourcePythonSupportAnacondaPyPI(pip)ObtainingtheSourceInstallationfromSourceCompilersDependenciesOptionalDependenciesGettingstartedUserGuideExamplesAPIReferenceAboutstatsmodelsDeveloperPageReleaseNotesContentsInstallingstatsmodelsPythonSupportAnacondaPyPI(pip)ObtainingtheSourceInstallationfromSourceCompilersLinuxWindowsMacDependenciesOptionalDependenciesShowSourceInstallingstatsmodels¶TheeasiestwaytoinstallstatsmodelsistoinstallitaspartoftheAnacondadistribution,across-platformdistributionfordataanalysisandscientificcomputing.Thisistherecommendedinstallationmethodformostusers.InstructionsforinstallingfromPyPI,sourceoradevelopmentversionarealsoprovided.PythonSupport¶statsmodelssupportsPython3.6,3.7and3.8.Anaconda¶statsmodelsisavailablethroughcondaprovidedbyAnaconda.Thelatestreleasecanbeinstalledusing:condainstall-cconda-forgestatsmodelsPyPI(pip)¶Toobtainthelatestreleasedversionofstatsmodelsusingpip:pipinstallstatsmodelsFollowthislinktoourPyPIpagetodirectlydownloadwheelsorsource.ForWindowsusers,unofficialrecentbinaries(wheels)areoccasionallyavailablehere.ObtainingtheSource¶Wedonotreleaseveryoftenbutthemasterbranchofoursourcecodeisusuallyfineforeverydayuse.Youcangetthelatestsourcefromourgithubrepository.Orifyouhavegitinstalled:gitclonegit://github.com/statsmodels/statsmodels.gitIfyouwanttokeepuptodatewiththesourceongithubjustperiodicallydo:gitpullinthestatsmodelsdirectory.InstallationfromSource¶YouwillneedaCcompilerinstalledtobuildstatsmodels.Ifyouarebuildingfromthegithubsourceandnotasourcerelease,thenyouwillalsoneedCython.YoucanfollowtheinstructionsbelowtogetaCcompilersetupforWindows.Ifyoursystemisalreadysetupwithpip,acompiler,andgit,youcantry:pipinstallgit+https://github.com/statsmodels/statsmodelsIfyoudonothavepipinstalledorwant


常見投資理財問答


延伸文章資訊