
Python
在终端或命令行界面下:
bash
sudo apt-get update
sudo apt-get install Python3-pip
Windows系统上安装pip:
- 下载 [pip脚本](https://bootstrap.pypa.io/get-pip.py),保存为get-pip.py。
- 在cmd窗口中进入get-pip.py所在的目录中,运行:
bash
Python get-pip.py
- 安装完毕后,可在cmd命令行中输入:
bash
pip -V
如果看到pip的版本信息,说明已成功安装pip。
注:运行pip 安装模块时需要在管理员权限下操作,在pip后面输入安装的模块名即可,例如:
bash
pip install tensorflow
上面的指令将会安装tensorflow模块。
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号