Python 3.10 警告

Dav*_*ili 17 python warnings pycharm

warning: PYDEVD_USE_CYTHON environment variable is set to 'NO'. Frame evaluator will be also disabled because it requires Cython extensions to be enabled in order to operate correctly.
C:\Program Files\JetBrains\PyCharm Community Edition 2021.2.3\plugins\python-ce\helpers\pydev\pydevd.py:1844: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
  dummy_thread = threading.currentThread()
Run Code Online (Sandbox Code Playgroud)

我安装了最新版本的 python,删除了旧版本,然后弹出了此警告。Python代码运行正常,但调试后弹出此消息。我使用 Pycharm 作为 IDE。如何解决这个问题?

Rob*_*Rob 12

此问题已在 Pycharm 2021.3 中修复。升级一下,它就会消失。

请参阅2021.3 发行说明

Bug     PY-44838    Build debugger binaries for Python 3.10
Run Code Online (Sandbox Code Playgroud)


小智 3

迁移到 python 3.10 后我收到了相同的通知

有意禁用 Python 3.10 的 Cython 加速,因为它们会破坏调试器。JetBrains 正在修复此问题,并将在 Windows 上捆绑 Python 3.10 的预编译加速(与其他版本一样)

问题链接