You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VSCode终端中pip命令无法识别的问题求助

VSCode终端中pip命令无法识别的问题求助

我在终端里用pip install安装matplotlib或者其他Python库的时候,总是弹出这个错误:

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • pip
  • + CategoryInfo          : ObjectNotFound: (pip:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    

我跟着网上的教程试过修复,但在VSCode里还是不管用。奇怪的是,我在系统自带的CMD里运行pip是正常的,能显示所有pip的命令和提示,就像安装正确的样子。

这事儿对我来说特别急,因为要赶学校的项目截止日期,之前在笔记本(性能不够跑不动项目)和学校电脑上都没遇到过这种问题,现在在家用自己的PC继续做就出状况了,真心求各位大佬帮忙!

备注:内容来源于stack exchange,提问作者jb4

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 10:53:07