plt.show()使用Anaconda Python挂在OSX上 [英] plt.show() hangs on OSX with Anaconda Python

查看:90
本文介绍了plt.show()使用Anaconda Python挂在OSX上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

import matplotlib.pyplot as plt
plt.figure()
plt.show()

...板球.解释器挂起,我似乎无法中断它.

...crickets. The interpreter hangs and I can't seem to interrupt it.

这是在OSX上使用的Python 2.7.9和Anaconda 2.2.0(x86_64).

This is with Python 2.7.9 and Anaconda 2.2.0 (x86_64) on OSX.

这会发生在其他人身上吗?我该如何解决这个问题?

Does this happen for anyone else? How can I solve this problem?

推荐答案

尝试使用pythonw而不是python启动Python.

Try starting Python using pythonw instead of python.

这篇关于plt.show()使用Anaconda Python挂在OSX上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆