{"id":357,"date":"2017-03-08T11:56:38","date_gmt":"2017-03-08T02:56:38","guid":{"rendered":"http:\/\/www.python.ambitious-engineer.com\/?p=357"},"modified":"2018-03-11T21:28:13","modified_gmt":"2018-03-11T12:28:13","slug":"ubunt%e3%81%aepyenv%e4%b8%8a%e3%81%a7tkinter%e3%82%92%e4%bd%bf%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/357","title":{"rendered":"Ubunt\u306epyenv\u4e0a\u3067tkinter\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"<p>Ubuntu\u3067Python\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3068\u6a19\u6e96GUI\u30e9\u30a4\u30d6\u30e9\u30ea\u306etkinter\u306e\u8aad\u307f\u8fbc\u307f\u306b\u5931\u6557\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nModuleNotFoundError: No module named '_tkinter'\r\n<\/pre>\n<p>\u539f\u56e0\u306f2\u3064\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30b7\u30b9\u30c6\u30e0\u306btkinter\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044<\/li>\n<li>pyenv\u3067\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u305f\u969b\u306btkinter\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044<\/li>\n<\/ul>\n<p>pyenv\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3044\u305a\u308c\u306b\u305b\u3088\u4e00\u65e6Python\u306e\u74b0\u5883\u3092\u524a\u9664\u3057\u3066\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# \u4e00\u65e6\u30cd\u30a4\u30c6\u30a3\u30d6\u74b0\u5883\u306b\u5207\u308a\u66ff\u3048\u308b\r\npyenv global system\r\n\r\n# \u5bfe\u8c61\u306e\u74b0\u5883\u3092\u524a\u9664\u3059\u308b\r\npyenv uninstall 3.X.X\r\n\r\n# \u5fc5\u8981\u306a\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\r\nsudo apt-get install python3-tk\r\nsudo apt install tk-dev\r\n\r\n# \u518d\u5ea6\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\r\npyenv install 3.X.X\r\npyenv global 3.X.X\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u3067Python\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3068\u6a19\u6e96GUI\u30e9\u30a4\u30d6\u30e9\u30ea\u306etkinter\u306e\u8aad\u307f\u8fbc\u307f\u306b\u5931\u6557\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u539f\u56e0\u306f2\u3064\u8003\u3048\u3089\u308c\u307e\u3059\u3002 \u30b7\u30b9\u30c6\u30e0\u306btkinter\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044 pyenv\u3067\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u305f...<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[120],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/357"}],"collection":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/comments?post=357"}],"version-history":[{"count":3,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":1615,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/357\/revisions\/1615"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}