相关疑难解决方法(0)

matplotlib Python的安装问题

我在安装matplotlib软件包后无法将matplotlib.pyplot作为plt导入.任何建议都将非常感激.

>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "//anaconda/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/pyplot.py", line 98, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "//anaconda/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/backends/__init__.py", line 28, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "//anaconda/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/backends/backend_macosx.py", line 21, in <module>
    from matplotlib.backends import _macosx
**RuntimeError**: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the …
Run Code Online (Sandbox Code Playgroud)

python macos matplotlib anaconda

485
推荐指数
1
解决办法
17万
查看次数

macosx下的python matplotlib框架?

我收到此错误:

/sw/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py:235:UserWarning:Python未作为框架安装.如果未将Python安装为框架,则MacOSX后端可能无法正常工作.有关在Mac OS X上安装Python作为框架的更多信息,请参阅Python文档

我使用fink安装了python27,并且使用默认的matplotlib是使用macosx框架.

python matplotlib fink

59
推荐指数
7
解决办法
2万
查看次数

如何使用Python3.2安装matplotlib

我在ubuntu中安装了python3.2(默认版本没有删除),我按照这里的步骤操作

但是,当我使用

python3.2 setup.py install
Run Code Online (Sandbox Code Playgroud)

我有:

 "error: command 'gcc' failed with exit status 1",
"src/ft2font.cpp:2224:29: error: ‘Int’ is not a member of ‘Py’"
Run Code Online (Sandbox Code Playgroud)

当我使用时 sudo apt-get install python-matplotlib 我可以在python2.x中使用matplot,而我仍然无法使用它与python3.2如何在python3.2中安装matplot?

python numpy matplotlib python-3.2

39
推荐指数
3
解决办法
8万
查看次数

标签 统计

matplotlib ×3

python ×3

anaconda ×1

fink ×1

macos ×1

numpy ×1

python-3.2 ×1