Python模块(套件)安装

当需要安装某个模块(套件)的时候,可以直接通过 pip、easy_install 方法轻松安装。若此方法不行,则可到网站:https://pypi.python.org/pypi/et_xmlfile/1.0.0 搜索需要的模块套件,下载到某个目录中并解压,然后进入解压后的模块套件所在目录,执行 python(或者 python3) setup.py install进行安装。

easy_install 安装 python 套件:

  1. 安裝套件:easy_install PackageName
  2. 更新套件:easy_install -U PackageName
  3. 移除套件:easy_install -m PackageName
  4. 提示说明:easy_install –showhelp

pip 安装 python套件:

  1. 安装套件:pip install PackageName
  2. 更新套件:pip install -U PackageName
  3. 移除套件:pip uninstall PackageName
  4. 搜索套件:pip search PackageName
  5. 提示说明:pip help

你可能感兴趣的:(Python)