Personal solution to the pip version problem of pycharm (Try to run this command from the system terminal. Make sure that you use...)

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 ‘E:\python\Program\Scripts\python.exe’.

Written above, if the pip version is consistent and the installation fails, it is a network problem. It is a download failure, but it will still be prompted like this. You can install it a few more times, and the installation will be successful.

insert image description here
insert image description here

This problem is really too annoying, the version will be different at every turn, and if it is different, it cannot be used. Isn't it good to use python's pip directly? As a result, various libraries cannot be installed. . .

I have been working on this problem today, and it is finally solved. It can be used for my own problem. You can try it, and you will know if it works. . . Anyway, after I fixed it last time, I forgot it again this time, and I had to search on Baidu again, forget it, and record it myself.

1. First of all, this problem is caused by different pip versions . Follow these steps to install the latest pip from the File Setting. First, make sure that the latest pip version of pycharm is 21.2.4, and update this first. To the latest, and then solve the python pip version problem .
insert image description here
Then you can view and update the pip version in the Terminal in pycharm , enter pip list to get the pip version of python is 21.2.3, indeed the version is inconsistent.

insert image description here

The first is to uninstall pip21.2.3. I made a mistake in this process. When I copied the solution recommended by pycharm, there was an extra -m. I don’t know whether to add this thing, so I tried to remove it, and then uninstalled successfully. up. . . Enter pip install --upgrade pip to update

But I don't know if it's a problem with the company's confidential software or what's going on, and another error has occurred, but fortunately it can be resolved. . . .
insert image description here
I tried the recommended easy_install pip on the Internet, and the result was an error. I guess I spelled it wrong. Then I tried to install pip directly, entered pip install pip and it was solved . . . .
insert image description here

Finally, the python drawing library was successfully installed. . .
insert image description here
I also served it. . Why can't you just use the pip that comes with python directly? You have to have two pip versions, and the versions are different and you can't use it. Mentally retarded setting!

Guess you like

Origin blog.csdn.net/ruredfive/article/details/120268519