Original text: https://blog.csdn.net/weixin_ 39278265/article/details/82938270
You need to modify the directory referenced in the pip.exe file in the scripts directory of the virtual environment.
Referring to the original text, I used Notepad + + to open pip.exe, and then searched according to the python path information prompted,
After finding it, replace it with the path of python.exe in the current virtual environment and save it.