python debug时报:AttributeError: module 'platform' has no attribute 'python_implem
如下图所示,在debug脚本时会出现如下错误,但run脚本时一切正常,很诡异的问题,求大侠们help~~
(PS本人平台是Mac OS, pycharm, 之前还一切正常,今天突然发现出现这样的问题。)
/usr/local/bin/python3.8 /Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 55292 --file /Users/skyy/MyPython/DataAnalysis/sortTuple.py
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py", line 22, in <module>
from _pydevd_bundle.pydevd_constants import IS_JYTH_LESS25, IS_PYCHARM, get_thread_id, get_current_thread_id, \
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_constants.py", line 25, in <module>
IS_CPYTHON = platform.python_implementation() == 'CPython'
AttributeError: module 'platform' has no attribute 'python_implementation'
Process finished with exit code 1