Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python pydev调试器中的路径错误:_Python_Visual Studio Code - Fatal编程技术网

Python pydev调试器中的路径错误:

Python pydev调试器中的路径错误:,python,visual-studio-code,Python,Visual Studio Code,我在VS代码中使用了Microsoft软件包中的Python。 当我运行一些Python代码时,会出现以下错误: pydev debugger: Unable to find real location for: threading.py pydev debugger: Unable to find real location for: C:\Users\abukreev\AppData\Roaming\Python\Python36\site-packages pydev debugger:

我在VS代码中使用了Microsoft软件包中的Python。 当我运行一些Python代码时,会出现以下错误:

pydev debugger: Unable to find real location for: threading.py
pydev debugger: Unable to find real location for: C:\Users\abukreev\AppData\Roaming\Python\Python36\site-packages
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap>
pydev debugger: Unable to find real location for: genericpath.py
pydev debugger: Unable to find real location for: ntpath.py
pydev debugger: Unable to find real location for: runpy.py
pydev debugger: Unable to find real location for: pkgutil.py
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap_external>
pydev debugger: Unable to find real location for: urllib\parse.py
pydev debugger: Unable to find real location for: queue.py
pydev调试器:找不到:threading.py的实际位置
pydev调试器:找不到C:\Users\abukreev\AppData\Roaming\Python\Python36\site软件包的实际位置
pydev调试器:找不到以下对象的实际位置:
pydev调试器:找不到的实际位置:genericpath.py
pydev调试器:找不到的实际位置:ntpath.py
pydev调试器:找不到的实际位置:runpy.py
pydev调试器:找不到pkgutil.py的实际位置
pydev调试器:找不到以下对象的实际位置:
pydev调试器:找不到urllib\parse.py的实际位置
pydev调试器:找不到的实际位置:queue.py
我的笔记本电脑上的Python位于
C:\Users\abukreev\Documents\Python367\。

但是pydev在
C:\Users\abukreev\AppData\Roaming\Python\Python36\site包中等待它

如何更改
pydev
设置

这可能是延伸本身的问题。但是,您可以确保名为
PYTHONPATH
的环境变量指向python文件夹:
C:\Users\abukreev\Documents\Python367\
C:\Users\abukreev\Documents\Python367\lib

PYTHONPATH
变量告诉系统在哪里可以找到python模块。如果您的环境中没有任何
PYTHONPATH
变量,您应该自己添加它


请阅读此处进一步解释:

我遇到了同样的问题。我使用安装程序而不是zip文件重新安装python

Python3.7.6下载链接为

我刚刚查看了此扩展的详细信息。它说PyDev调试器集成是一个计划中的特性(很快)。这可能是您看到的错误的原因吗?我只是在使用内置的Python调试器,它工作得非常好。可能的pyc损坏<代码>查找-名称'*.pyc'-delete或任何与Windows等效的名称可以添加区别吗?此外,根据最新版本is 3.8.2–为什么不使用该页面(该页面始终包含指向最新版本的链接)?