首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

python自动安装工具easy_install的施用

2012-11-07 
python自动安装工具easy_install的使用安装easy_install完成之后,如何使用easy_install呢,去官网看看吧:--

python自动安装工具easy_install的使用
安装easy_install完成之后,如何使用easy_install呢,去官网看看吧:--Downloading and Installing a Package

使用一:
       根据你想要的安装包名来进行easy_install,工具会检索网页查询最新版本的包,自动下载、构建和安装
       easy_install SQLObject
这办法很简洁并不适合中国国情,由于GFW对python.org的长期屏蔽,命令行下的easy_install根本找不到网址,更无从下载
使用二:
       指定网址来更新或安装,类似使用一,多了个参数-f和用来指定页面的地址
只指定页面地址
       easy_install -f http://pythonpaste.org/package_index.html SQLObject
使用三:
       只使用网址来easy_install安装
       easy_install http://example.com/path/to/MyPackage-1.2.3.tgz
使用四
        easy_install安装下载好的egg文件(egg文件是用setup tools打包的压缩文件)
        easy_install /my_downloads/OtherPackage-3.2.1-py2.3.egg
使用五:
         升级包,有时候你需要更新包的版本
         easy_install --upgrade PyProtocols
使用六:
         我最喜欢的一种方法,翻*墙后下载安装包并解压,然后CD到解压包内运行以下命令即可
        easy_install .

参考资料:http://peak.telecommunity.com/DevCenter/EasyInstall#downloading-and-installing-a-package

热点排行