解决Fatal error in launcher: Unable to create process using ‘“d:\vs code python\.venv\scripts\python.e
vscode安装matplotlib包出现以下报错"Fatal error in launcher: Unable to create process using '"d:\vs code python\.venv\scripts\python.exe" "D:\vscodepython\.venv\Scripts\pip.exe" install matplotlib': ???????????”
解决方法:
在终端输入以下指令
python -m pip install -U --force-reinstall pip
运行后显示:
Collecting pip
Using cached pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Using cached pip-24.2-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 24.2
Uninstalling pip-24.2:
Successfully uninstalled pip-24.2
Successfully installed pip-24.2
然后重新输入以下代码,即可成功安装
pip install matplotlib
作者:HXQ-晴天