python -m pip install --upgrade pip
python -m ensurepip
easy_install pip
很多小伙伴在使用 VScode 自带程序终端的时候会报出"系统禁止脚本运行的错误",
准备的原因,是因为 PowerShell 执行策略的问题。
解决方法:
- 管理员身份运行 window.powershell
- 执行:get-ExecutionPolicy,显示Restricted,表示状态是禁止的;
- 执行:set-ExecutionPolicy
- 会提示输入参数:RemoteSigned
- 会提示进行 选择:
2. 输入:Y
之后就不会有问题了。