pip 安装库

本文介绍的是通过windows系统安装 python 库。

第一步 win+R打开运行,输入cmd

pip 安装库及换源

或者直接开始搜索cmd

这样我们就打开了命令提示符
pip 安装库及换源
pip安装包

只要输入 pip install 安装包名

例如我们要安装 xgboost

pip 安装库及换源
但是这样子直接回车安装速度会很慢,所以我们需要换源,也就是使用清华镜像

pip install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple

pip 安装库及换源

相关文章:

  • 2021-06-13
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2022-02-07
  • 2021-09-25
  • 2021-11-19
  • 2021-08-24
  • 2021-10-26
  • 2022-01-25
相关资源
相似解决方案