ImportError: /lib/x86_64-linux-gnu/libgssapi_krb5.so.2: undefined symbol: krb5_ser_context_init, ver

错误:

`ImportError: /lib/x86_64-linux-gnu/libgssapi_krb5.so.2: undefined symbol: krb5_ser_context_init, version krb5_3_MIT`

在虚拟环境中PyQt5跟很多包冲突,导致无法启动程序。

解决:

1. 降级

`pip install PyQt5==5.12.1`

并安装

`pip install PyQtWebEngine==5.12.1`

2.如果是重装了opencv之后导致qt5不能用

解决:

```

pip uninstall opencv-python
pip install opencv-python-headless

```

你可能感兴趣的:(linux,运维,服务器,python,人工智能)