简体   繁体   中英

PyCharm Plotting Issue "Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)"

Within PyCharm (Versions 2020.3) I'm unable to show any plots and I get an error. I've tried following other recommendations of going into PyCharm settings and unselecting "PyQt" as well as selecting "Gevent compatible" with no luck. I believe the issue started happening after the latest Big Sur update, but I'm not 100% positive. Below are the errors and any other info I thought might be relevant. I would love any help or guidance since this has been driving me crazy for a couple weeks moving output just to visualize things in Jupyter Notebooks! Thank you in advance!!

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

And here is the error message popup:

在此处输入图像描述

Some more info and not sure if this matters, but when I import matplotlib I get this output:

"Backend MacOSX is interactive backend. Turning interactive mode on."

Here is a basic example from Matplotlib site to reproduce my error as well as the basic code block:

import numpy as np
import matplotlib.pyplot as plt

# Fixing random state for reproducibility
np.random.seed(19680801)

N = 50
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = (30 * np.random.rand(N))**2  # 0 to 15 point radii

plt.scatter(x, y, s=area, c=colors, alpha=0.5)
plt.show()

Per @fernolimits above, I upgraded matplotlib ( pip install --upgrade matplotlib ) from version 3.2.1 to 3.3.4 and it worked!

I ran the command (pip install --upgrade matplotlib but doesn't work. So I manually upgrade it in pycharm then restart pycharm and it worked

Preference in PyCharm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM