2025-05-09 16:52:57 +08:00

40 lines
720 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Python
date: 2025-03-10 14:26:30
tags:
---
# pip
## 查看版本
```shell
pip --version
```
## 使用Pip安装Github上的软件包
接下来使用以下命令来安装Github上的软件包
```python
pip install git+https://github.com/username/repository.git
```
## 升级和卸载软件包
要升级软件包,可以使用以下命令:
```python
pip install --upgrade package_name
```
其中,`package_name`是你要升级的软件包的名称。Pip会自动检查版本并安装最新的软件包。
如果你想卸载已安装的软件包,可以使用以下命令:
```python
pip uninstall package_name
```
Pip会询问你是否确定卸载软件包并删除相关的文件。