问题描述
重新安装anaconda之后,我建立了一个新的Pycharm项目.当我调试其中一个python脚本时,出现此错误:
After reinstalling anaconda, I set up a new Pycharm project. When I debug one of my python scripts it get this error:
这仅在我调试时发生.有什么建议吗?
This only happens when I debug. Any advice?
作为参考,以下是我当前正在使用的软件版本:
For reference, these are the software versions I am currently using:
推荐答案
与鲍勃同问题.
这是我的解决方法(不是完整的解决方法,但是可以完成工作):
Here is my workaround (not a complete fix but it does the job) :
从anaconda(或miniconda =>也适用于我)复制/粘贴整个sites-packages文件夹到默认的python解释器,然后切换到项目内部的默认python.exe解释器(设置"->项目解释器").
Copy/paste the entire sites-packages folder from the anaconda (or miniconda => works for me too) to the default python interpreter and switch to this default python.exe interpreter inside your project (Settings -> Project Interpreter).
例如,将文件夹C:\ Miniconda3 \ Lib \ site-packages覆盖为C:\ Users \ YOUR_ACCOUNT \ venv \ Lib \ site-packages
For example overwrite the folder C:\Miniconda3\Lib\site-packages to C:\Users\ YOUR_ACCOUNT\venv\Lib\site-packages
此后,运行和调试模式均可用.
After that run AND debug modes are both available.
希望这项帮助!
这篇关于Pycharm调试器无法启动:已完成,退出代码为-1073741819(0xC0000005)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!