python自动安装工具easy_install的使用

安装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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值