更新时间:2022-03-17 05:37:35
与鲍勃同问题.
这是我的解决方法(不是完整的解决方法,但是可以完成工作):
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.
希望这项帮助!