
pip 是 Python 的包安装器。我们可以在 Python 包搜索页面 中找到需要的包,然后通过 pip 安装到开发环境。
python get-pip.py

安装成功后,可以在 Python 的安装路径 Scripts 下发现这些文件:

pip 使用命令很简单:
pip install 包名
比如我们需要一个读写 excel 的包,然后就可以这样写:
pip install openpyxl
输出结果:

是不是很方便呀O(∩_∩)O哈哈~
pip 是 Python 的包安装器。我们可以在 Python 包搜索页面 中找到需要的包,然后通过 pip 安装到开发环境。
python get-pip.py
安装成功后,可以在 Python 的安装路径 Scripts 下发现这些文件:
pip 使用命令很简单:
pip install 包名
比如我们需要一个读写 excel 的包,然后就可以这样写:
pip install openpyxl
输出结果:
是不是很方便呀O(∩_∩)O哈哈~
本文标题:说说如何安装与使用 Python 的包安装器(pip)
本文链接:https://www.haomeiwen.com/subject/uqxxyqtx.html
网友评论