简体   繁体   English

程序“python.exe”无法运行:访问被拒绝在行:1 VSCode

[英]Program 'python.exe' failed to run: Access is deniedAt line:1 VSCode

I am using VSCode for the first time and I have a problem to import anything.我是第一次使用 VSCode,我在导入任何东西时遇到了问题。 When I originally installed (yesterday), I could import built in module like the os .当我最初安装时(昨天),我可以导入像os这样的内置模块。 But I am using for data science purposes so I have Anaconda.但我用于数据科学目的,所以我有 Anaconda。 I have changed python path on VSCode to the Ananconda one and now it shows Ananconda3: conda at the bottom.我已将 VSCode 上的 python 路径更改为 Ananconda 路径,现在它在底部显示 Ananconda3: conda。
But every time I am trying to import anything I have the following message:但是每次我尝试导入任何东西时,我都会收到以下消息:

Program 'python.exe' failed to run: Access is deniedAt line:1程序“python.exe”运行失败:访问被拒绝在第 1 行

I could not access the python from the conda location.我无法从 conda 位置访问 python。 However, the normal python worked well.但是,普通的 python 运行良好。 That could have been a problem with the work computer configuration or internet security or maybe something else.这可能是工作计算机配置或互联网安全或其他问题的问题。 I changed the conda location to ProgramData and it worked fine.我将 conda 位置更改为 ProgramData,它工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM