每次我尝试将我的 python 代码执行到 Python 交互式窗口时,我都会收到以下错误...
Executing code failed : Error: Activating Python 3.7.3 64-bit ('base': conda) to run Jupyter failed with Error:
Command failed: "H:/My Documents/Continuum/anaconda3/Scripts/activate" && conda activate base &&
echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python
c:/Users/paul.victor/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/printEnvVariables.py python:
can't open file 'H:\My': [Errno 2] No such file or directory .
Run Code Online (Sandbox Code Playgroud)
我有一种感觉,我应该尝试将安装在 C 驱动器中的 vscode/python 扩展重新映射到我的 anaconda 的保存位置,即 H 驱动器,但我不确定如何在 vs 代码中执行此操作设置。任何帮助将不胜感激。
跟进原件
user8408080 是正确的,删除空间确实有帮助。我还将anaconda环境的路径修改为我的公司驱动器命名法,
而不是 H:它使用了类似 \\company\user...
现在我修复了它踢出另一个错误,说即使路径正确,系统也找不到指定的路径。
Executing code failed : Error: Activating Python 3.7.3 64-bit ('base': conda) to run …Run Code Online (Sandbox Code Playgroud)