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
相关文章推荐
- Python动态类型的学习---引用的理解
- Python3写爬虫(四)多线程实现数据爬取
- 垃圾邮件过滤器 python简单实现
- 下载并遍历 names.txt 文件,输出长度最长的回文人名。
- install and upgrade scrapy
- install scrapy with pip and easy_install
- Scrapy的架构介绍
- Centos6 编译安装Python
- 使用Python生成Excel格式的图片
- 让Python文件也可以当bat文件运行
- [Python]推算数独
- Python中zip()函数用法举例
- Python中map()函数浅析
- Python将excel导入到mysql中
- Python在CAM软件Genesis2000中的应用
- 使用Shiboken为C++和Qt库创建Python绑定
- FREEBASIC 编译可被python调用的dll函数示例