现在的位置: 首页 > 综合 > 正文

安装,使用Python easy_install 模块

2013年07月22日 ⁄ 综合 ⁄ 共 1161字 ⁄ 字号 评论关闭

使用Python模块easy_install可以很方便地下载、安装、管理 python package

windows下安装easy_install(首先保证你安装了Python)

下载安装文件easy_install.exe 然后next-next-next 安装完毕,会在{python_path}/Scripts/下增加easy_install.exe

{python_path}/Scripts/加到系统path中,就可以在控制台中输入easy_install package_name  安装package了

如下所示(以下是安装Pygments的经过,很简单,输入easy_installPygments,剩下来的交给easy_install了,他会负责去网上查找,下载,安装,很像linux 命令apt-get install

E:\Python27\Scripts>easy_install Pygments
Searching for Pygments
Reading http://pypi.python.org/simple/Pygments/
Reading http://pygments.org/
Reading http://pygments.pocoo.org/
Best match: Pygments 1.4
Downloading http://pypi.python.org/packages/2.7/P/Pygments/Pygments-1.4-py2.7.egg#md5=acbdde4dae30efaba8cfa86dcb6070f2
Processing Pygments-1.4-py2.7.egg
creating e:\python27\lib\site-packages\Pygments-1.4-py2.7.egg
Extracting Pygments-1.4-py2.7.egg to e:\python27\lib\site-packages
Adding Pygments 1.4 to easy-install.pth file
Installing pygmentize-script.py script to E:\Python27\Scripts
Installing pygmentize.exe script to E:\Python27\Scripts
Installing pygmentize.exe.manifest script to E:\Python27\Scripts

Installed e:\python27\lib\site-packages\pygments-1.4-py2.7.egg
Processing dependencies for Pygments
Finished processing dependencies for Pygments

抱歉!评论已关闭.