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