1.一般我们的pip报错他会给我们提示代码。
You should consider upgrading via the ‘C:\Users\mengfanxu\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip’ command.
2,但是如果用了它的pip还是报错呢,接下来大家可以看看我的报错。
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
3.这个时候不要慌,我们只需要将下面这段代码黏贴下去执行就可以了。
pip3 install pyinstaller -i https://pypi.tuna.tsinghua.edu/simple -U
4.大家执行下去就好了。

更多推荐

pip报错 Consider adding this directory to PATH or, if you prefer to suppress this