pycharm debugger 出现错误

pycharm debugger 出现错误

系统版本CentOS Linux release 8.5.2111
pycharm版本2021.3社区版
控制台提示:
/usr/local/python3.8/bin/python3.8 /usr/local/python/pycharm-community-2021.3.1/plugins/python-ce/helpers/pydev/pydevd.py --multiproc --client 127.0.0.1 --port 34627 --file /home/renzhiwei/PycharmProjects/pythonProject/demo6.py
Traceback (most recent call last):
File "/usr/local/python/pycharm-community-2021.3.1/plugins/python-ce/helpers/pydev/pydevd.py", line 40, in <module>

import pydevd_tracing

File "/usr/local/python/pycharm-community-2021.3.1/plugins/python-ce/helpers/pydev/pydevd_tracing.py", line 1, in <module>

import ctypes

File "/usr/local/python3.8/lib/python3.8/ctypes/__init__.py", line 7, in <module>

from _ctypes import Union, Structure, Array

ModuleNotFoundError: No module named '_ctypes'

日志提示 Connection to Python debugger failed: Socket closed


回答:

安装外部函数库(libffi)
yum install libffi-devel -y
然后重新安装

以上是 pycharm debugger 出现错误 的全部内容, 来源链接: utcz.com/p/938233.html

回到顶部