PyCharm 安装后的问题:无法在动态 link 库 mkl_intel_thread.dll 中找到序号 242

Problem after PyCharm installation: The ordinal 242 could not be located in the dynamic link library mkl_intel_thread.dll

我刚刚安装了 JetBrains 的 PyCharm,因此它对我的 Anaconda 导航器应用程序(即 Spyder 和 Jupyter Lab)进行了一些更改。因此 python 代码既不能 运行 也不能在 Jupyter 上进行调试,并且在 Spyder 启动时发生错误。如果有人帮我解决这个问题?

当您更新 IDE 或安装新的相关 IDE 时,通常会出现此问题。

快速临时修复:

在启动 spyder 之前在 anaconda 提示符下输入以下命令。

设置CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1 https://i.stack.imgur.com/oWpQy.png(图片参考)

永久解决方案:

打开 运行.. 然后粘贴以下路径 C:\Windows\System32 然后回车 你必须在哪里搜索 libiomp5md.dll

删除它或将其重命名为 libiomp5md.dll.bak.