Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

我们熟悉的老朋友VS Code今天cv2莫名其妙报错,经过一番排查,得到是Python自身出了问题,故记录一下VSC与anaconda配置其的过程

VSCode

首先,我们需要在环境变量中添加

1
2
C:\Users\13001\AppData\Local\Programs\Python\Python37
C:\Users\13001\AppData\Local\Programs\Python\Python37\Scripts

再在VSCode中,Ctrl+Shift+P 或者 View > Command Palette,打开命令面板
输入 Python: Select Interpreter

1682516032742

选择Python的安装路径

1682516109477

可以使用上方的刷新符号来更新已经卸载的python版本的状态使其消失

选择好解释器后,就可以愉快的开始使用了

评论