VS代码中的Python交互式窗口错误无法写入文件default.profraw:权限被拒绝

2024-04-26 14:47:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我最近更新了我的Anaconda发行版(Conda 4.8.3,Python 3.6.10),目前正在运行Visual Studio代码(版本1.44.2)

我试图打开Jupyter笔记本和Python交互窗口,但出现以下错误:

Command 'Python: Show Python Interactive Window' resulted in an error Activating Python 3.6.10 64-bit ('base': conda) to run Jupyter failed with Error: StdErr from ShellExec, LLVM Profile Error: Failed to write file "default.profraw": Permission denied

每次我运行python解释器时,它都会在我的当前目录中创建一个新的“default.profraw”文件,这在我以前的conda/python安装中是没有的

我曾尝试使用虚拟conda环境(例如Python3.5)安装较旧版本的Python,以查看它是否可以纠正错误,但没有成功

我目前正在使用Mac OSX High Sierra(10.13.6)


Tags: to代码版本default错误笔记本jupytererror
1条回答
网友
1楼 · 发布于 2024-04-26 14:47:59

这让我快发疯了!{a1}给出了修复,但它应该是一个答案,而不仅仅是一个链接:

This seems to be new behavior in the 1010 build of Python 3.6.10. Build 1009, which can be installed using conda install -c conda-forge "python=3.6.10=*1009*", does not produce this file.

为我工作

相关问题 更多 >