[Solved] Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Doing my homework in Python this afternoon, I used qwebengineview in pyqt5 to open external web pages

But it always flashes back. It flashes back as soon as it runs

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

It’s the same with the code of netizens

After many times of searching, it is not the problem of graphics driver, nor the problem of importing multiple conflict packages at the same time

It’s about pyqt5

So I created a new virtual environment of anaconda, installed pyqt5 = = 5.10, and finished it

Here’s the operation of anaconda. Because the command line operation of anaconda is also on the terminal on MacOS, you should pay attention to the virtual environment when installing the package

conda create -n pyqt python=3.7 #Create a virtual environment
conda remove -n pyqt #Remove virtual environments


conda env list #Show the list of virtual environments
conda activate XXX #Switch the current virtual environment

conda config --add channels   
conda config --remove channels 
conda config --show #Show configuration information   

pip list #Show installed third-party libraries
pip uninstall XXX #Uninstall XXX third-party libraries

Similar Posts: