命令行安装方式:
除了一开始下载python包自带的库,开发者以后想开发更多的功能必须自行安装,以下是命令行安装的方式
win+R打开,输入cmd,打开命令行
![](https://i-blog.csdnimg.cn/blog_migrate/60282985636d4767edfe12a138d1ec65.png)
比如我要安装beautifulsoup4
pip install beautifulsoup4
pip install beautifulsoup4
安装完后
![](https://i-blog.csdnimg.cn/blog_migrate/7a3eb60b79e6b377ad4ff433a9c29c6e.png)
会有警告
WARNING: You are using pip version 19.2.3, however version 21.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
只需要输入就OK啦
python -m pip install --upgrade pip
完毕,告辞!