Pycharm安装第三方库时报错:Make sure that
2020-05-15 本文已影响0人
雪狐狸
Pycharm安装第三方库时报错:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'D:\PycharmProjects\alien_invasion\venv\Scripts\python.exe'.
原因:
pycharm里安装的pip与电脑中按照的pip版本不一致
1、查看pycharm中安装的pip版本:
setting->project-project Interprete->查看pip的版本为19.1
![](https://img.haomeiwen.com/i3168173/db39d7ed5fe4a1d6.png)
2、开始->运行->cmd->pip list查看当前电脑中安装的pip版本为19.2.3
![](https://img.haomeiwen.com/i3168173/747779658d888fe4.png)
解决方法:pycharm里安装的pip与电脑中按照的pip版本一致
修改pycharm里pip的版本为19.2.3
setting->project-project Interpreter->点击pip->右侧找到pip的版本选19.2.3,安装完成。
安装完成后再次安装第三方插件即可以正常安装。
![](https://img.haomeiwen.com/i3168173/23f87b0f7a70866f.png)