Python中的easy_install

来源:互联网 发布:ae for mac中文破解版 编辑:程序博客网 时间:2024/04/30 01:53

http://hi.baidu.com/thinkinginlamp/item/69cab949518d9aea1e19bcc1

如果想使用easy_install工具,可能需要先安装setuptools,不过更酷的方法是使用ez_setup.py脚本:

wget -q http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py

安装完后,最好确保easy_install所在目录已经被加到PATH环境变量里:

Windows: C:\Python25\Scripts
Linux: /usr/local/bin

比如说要安装Python的MySQL支持,可以执行如下命令,系统会自动在pypi网站列表里查找相关软件包:

easy_install MySQL-python

原创粉丝点击