Python中第三方库的安装
Python越来越流行,其强大的第三方库的方法,可以说是非常丰富的,如何安装第三方的模块,这肯定是必须要掌握的啊,通过https://www.liaoxuefeng.com网站上的学习以及其他资料的查阅,终于成功安装上了pillow图片处理的库,在安装第三方模块之前,你需要确保你的Python中安装了pip.exe,Python中的第三方的库的管理工具,那就很简单了。
如果你正在使用 Windows,确保安装时勾选了pip和Add Python.exe to path.
# 安装packagepip install packagename # 卸载packagepip uninstall packagename # 查看所安装的packagepip list # 将项目依赖的库重定向输出到文件,cd到项目根目录pip projectname > requirements.txt # 他人安装项目的依赖库pip install -r requirements.txt# pip常用命令可通过在命令行输入pip -h查看# pip command -h可查看该命令的使用方法 Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. search Search PyPI for packages. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion help Show help for commands.使用pip管理第三方库的一些常用命令, pip install pillow 就能够安装PIL 不过的是eclipse中安装之后需要重启一下eclipse,安装的第三方库才能用!
你需要用哪个库直接百度一下,也能够安装。

浙公网安备 33010602011771号