codecamp

CherryPy 使用easy_install进行安装

Python企业应用程序工具包(PEAK)提供了一个名为Easy Install的python模块。 这有助于部署Python包。 该模块简化了下载,构建和部署Python应用程序和产品的过程。

在安装CherryPy之前,需要在系统中安装Easy Install。

Step 1 - 从http://peak.telecommunity.com下载ez_setup.py模块,并使用计算机上的管理权限运行它:python ez_setup.py。

Step 2 - 以下命令用于安装Easy Install。

easy_install product_name

Step 3 - easy_install将搜索Python包索引(PyPI)以查找给定的产品。 PyPI是所有Python产品的集中信息库。

使用以下命令部署最新的CherryPy版本 -

easy_install cherrypy

Step 4 - easy_install将下载CherryPy,构建并将其全局安装到您的Python环境中。


CherryPy 使用Tarball安装
CherryPy 使用Subversion进行安装
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

CherryPy 一个工作应用程序

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }