vscode写Python找不到包问题的解决

运行目录下面新建.vscode文件夹,然后在里面新建settings.json文件,插入以下代码

{
	"code-runner.runInTerminal": true, 
	"python.pythonPath": "/usr/local/bin/python3",
	"code-runner.executorMap": {
		"python": "python3 -u",
	}
}

其中python.pythonPath是python的安装路径,此解决方法仅仅测试了mac

你可能感兴趣的:(Python,python,vscode)