1.安装
https://www.aliyundrive.com/s/1bc8Y6AS36k
2.cmd控制台
组合键: win 加 r ------- 通过组合键打开运行框, 输入框内输入 cmd , 然后点击确定即可进入;
win健就是键盘上面的最下面一排,有一个windows图标的键(如下图)
- 1
- 2
- 3
- 4
- 5
进入cmd控制台
cmd控制台
3.常规命令
python -V # python版本
where python # python解释器路径
python -h # 查看python其它命令
python # 进入交互式界面(exit()可退出交互式界面)
注意:交互式界面无法执行全局命令
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
4.pip命令
- pip是python自带的,用于安装第三方库
pip -V # pip版本
python -m pip install --upgrade pip # pip升级
pip list # 环境中已存在库的列表
pip -h # 查看pip全部命令
pip install 第三方库名 # 安装指定的第三方库
pip uninstall 第三方库名 # 卸载第三方库
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 强化命令
# 指定路径安装 ---- 需了解整体项目创建后进行学习使用
pip install 第三方库名 --target= # 指定安装的路径(Lib\site-packages)
# 指定源安装
pip install 第三方库名 -i 源
pip install 第三方库名 -i 源 --trusted-host 域名
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 源:pip源—镜像
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
豆瓣:http://pypi.douban.com/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8