{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5143","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5143/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5143/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5143/events","html_url":"https://github.com/matplotlib/matplotlib/issues/5143","id":108381825,"number":5143,"title":"importing pyplot raises error","user":{"login":"Omnipresent","id":115446,"avatar_url":"https://avatars.githubusercontent.com/u/115446?v=3","gravatar_id":"","url":"https://api.github.com/users/Omnipresent","html_url":"https://github.com/Omnipresent","followers_url":"https://api.github.com/users/Omnipresent/followers","following_url":"https://api.github.com/users/Omnipresent/following{/other_user}","gists_url":"https://api.github.com/users/Omnipresent/gists{/gist_id}","starred_url":"https://api.github.com/users/Omnipresent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Omnipresent/subscriptions","organizations_url":"https://api.github.com/users/Omnipresent/orgs","repos_url":"https://api.github.com/users/Omnipresent/repos","events_url":"https://api.github.com/users/Omnipresent/events{/privacy}","received_events_url":"https://api.github.com/users/Omnipresent/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/OS/Apple","name":"OS/Apple","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-25T18:20:26Z","updated_at":"2015-09-26T21:31:54Z","closed_at":null,"body":"After installing matplotlib I tried importing pyplot but got the error message below:\r\n\r\n`**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 Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends.`\r\n\r\nSo I followed this solution: http://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python\r\n\r\nHowever, now I'm getting this error\r\n\r\n`ImportError: No module named '_tkinter'`\r\n\r\nHere is the entire stacktrace:\r\n\r\n```bash\r\n▶ python\r\nPython 3.5.0 (default, Sep 24 2015, 19:45:12) \r\n[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import matplotlib.pyplot as plt\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/pyplot.py\", line 114, in <module>\r\n    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()\r\n  File \"/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/backends/__init__.py\", line 32, in pylab_setup\r\n    globals(),locals(),[backend_name],0)\r\n  File \"/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/backends/backend_tkagg.py\", line 6, in <module>\r\n    from matplotlib.externals.six.moves import tkinter as Tk\r\n  File \"/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/externals/six.py\", line 90, in __get__\r\n    result = self._resolve()\r\n  File \"/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/externals/six.py\", line 113, in _resolve\r\n    return _import_module(self.mod)\r\n  File \"/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/externals/six.py\", line 80, in _import_module\r\n    __import__(name)\r\n  File \"/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py\", line 35, in <module>\r\n    import _tkinter # If this fails your Python may not be configured for Tk\r\nImportError: No module named '_tkinter'\r\n```"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/143497785","html_url":"https://github.com/matplotlib/matplotlib/issues/5143#issuecomment-143497785","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5143","id":143497785,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T21:31:54Z","updated_at":"2015-09-26T21:31:54Z","body":"attn @jenshnielsen "}}