因此,我刚刚安装了 python 版本 3.11 并更改了 pycharm 中的 python 解释器,并且在将软件包重新安装到新的 venv 后,代码现在可以正常运行。
但是当我调试代码时,我不断收到一长串警告,并且我不知道如何修复它:
-------------------------------------------------------------------------------
pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute)
pydev debugger: The debugger may still function, but it will work slower and may miss breakpoints.
pydev debugger: Related bug: http://bugs.python.org/issue1666807
-------------------------------------------------------------------------------
Connected to pydev debugger (build 221.5080.212)
pydev debugger: Unable to find real location for: <frozen codecs>
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap> …Run Code Online (Sandbox Code Playgroud)