这里写自定义目录标题
安装完python3.6后,python目录下Scripts文件夹为空,找不到pip.exe文件,无法通过pip安装第三方库。
处理办法如下:
1、cmd下输入python -m ensurepip命令
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200508234710223.jpg)
使用该命令后,Scripts文件夹下多了三个文件
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200508234818808.png)
2、如果cmd内输入pip,还是提示pip不是内部命令;在cmd内输入
python -m pip install pillow,注意:pip默认都是在国外网站进行下载,晚上进行下载很容易提示失败(time out),凌晨安装会比较快速。
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200509072909568.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2t1b3F1MDg4NQ==,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200509072934218.png)
3、python -m pip install --upgrade pip更新pip。
![](https://img-blog.csdnimg.cn/20200509073058475.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200509073120965.png)
Scripts文件夹下出现pip.exe
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200509073246701.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2t1b3F1MDg4NQ==,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200509073308260.png)
可正常使用pip安装标准库
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200509073611135.png)