Problem with pip command

pip command is not recognized as an internal or external command

When this situation occurs, it is because the environment variables are not configured properly.
We right-click the computer->Properties->Advanced System Settings->Environment Variables
and click Path->New in the system variables. Fill in the scripts path in the python installation directory. Because there is a pip.exe file in this directory. After that, when we run pip, there will be no problems that are not internal commands.
Insert image description here

Fatal error in launcher appears when entering pip install mypackage

Solution:
1. You can use python -m pip install mypackage instead of the above command
2. Update the pip command python -m pip install --upgrade pip or pip install pip -U

Guess you like

Origin blog.csdn.net/qq_43767886/article/details/105281892