Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 43e2c53

Browse files
Create kc47.md
1 parent 49cd9c6 commit 43e2c53

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

‎kc/kc47.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# 4-7 库管理工具pip
2+
python的库分两种,一种是python自带的库文件,另外一种是一些第三方提供的库,自带的库文件,使用的时候,直接import就可以了,
3+
4+
但第三方的,就需要用到pip命令进行操作,下面咱们看一下,常用的命令有哪些
5+
6+
- pip install <库> 安装一个库
7+
- pip uninstall <库> 卸载一个库
8+
- pip list 查看当前的库及版本
9+
- pip show <库> 显示一个库的详细信息
10+
11+
当需要查看当前的安装库时,可以用命令:pip list,系统会列表当前已经有的库及对应库的版本
12+
13+
提示: 使用python互动学习系统的同学可以通过菜单栏的"文件"-"安装库" 进行操作
14+
### 代码区 1
15+
```python
16+
1 # 练习题 运行一下list show命令
17+
2
18+
```
19+
![4](https://user-images.githubusercontent.com/103555341/163546933-bee710b5-943e-454e-b00d-922d2b897614.jpg)
20+
21+
22+
23+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /