您的位置:首页 > 编程语言 > Python开发

easy_install和pip

2015-11-17 14:54 731 查看


学习python管理新模块需要知道easy_install和pip

easy_install

是由PEAK(Python Enterprise Application Kit)开发的setuptools包里带的一个命令

用途:安装python模块

安装时(easy_install file)setuptools会自动搜索PyPI(Python Package Index)以查找最新版本的模块,找到后,会自动下载、编译、安装

pypi.python.org/pypi

PyPI - the Python Package Index

The Python Package Index is a repository of software for the Python programming language. There are currently 69503 packages here.

移除模块
easy_install -m package_name


pip

The PyPA recommended tool for installing Python packages.

类似easy_install

可以用easy_install安装pip:
easy_install pip


pip 安装 scrapy:
pip install scrapy


移除模块
pip uninstall package_name


显示通过pip安装的模块:
pip3 list


显示过期的模块
pip3 list --outdated


更新模块:
pip3 install --upgrade setuptools


pip.pypa.io

同时有python2和python3的话,安装python3的包用
pip3


安装图片处理模块
Pillow


pip3 install Pillow
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  pip python easy-insta