当需要安装某个模块(套件)的时候,可以直接通过 pip、easy_install 方法轻松安装。若此方法不行,则可到网站:https://pypi.python.org/pypi/et_xmlfile/1.0.0 搜索需要的模块套件,下载到某个目录中并解压,然后进入解压后的模块套件所在目录,执行 python(或者 python3) setup.py install
进行安装。
easy_install 安装 python 套件:
- 安裝套件:easy_install PackageName
- 更新套件:easy_install -U PackageName
- 移除套件:easy_install -m PackageName
- 提示说明:easy_install –showhelp
pip 安装 python套件:
- 安装套件:pip install PackageName
- 更新套件:pip install -U PackageName
- 移除套件:pip uninstall PackageName
- 搜索套件:pip search PackageName
- 提示说明:pip help