{"id":26235,"date":"2022-09-27T23:39:29","date_gmt":"2022-10-11T15:23:00","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/"},"modified":"2025-08-11T19:50:23","modified_gmt":"2025-08-11T11:50:23","slug":"debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/","title":{"rendered":"[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib"},"content":{"rendered":"<h1>\u518d\u6b21\u9047\u5230\u4e86matplotlib\u7684\u56f0\u6270<\/h1>\n<p>\u7531\u4e8e\u5df2\u7ecf\u5b8c\u6210\u4e86pyenv\u7684\u8bbe\u7f6e\uff0c\u6211\u5f00\u59cb\u4f7f\u7528Python3.5.1\u8fdb\u884c\u7f16\u7a0b\u3002<br \/>\n\u5bf9\u4e8eipython\u3001numpy\u548cscipy\u8fd9\u4e9b\u5e93\uff0c\u6211\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528pip\u5b89\u88c5\uff0c\u65e0\u9700\u8003\u8651\u5176\u4ed6\u4e8b\u60c5\u3002<br \/>\n\u5728\u5b89\u88c5matplotlib\u5e93\u65f6\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n<p>\u6211\u8bb0\u5f97\u4ee5\u524d\u4e5f\u662f\u56e0\u4e3a\u8fd9\u4e2a\u5bb6\u4f19\u9047\u5230\u4e86\u56f0\u96be\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>apt-get <span class=\"nb\">install <\/span>libfreetype6-dev\r\n<span class=\"nb\">sudo <\/span>apt-get <span class=\"nb\">install <\/span>pkg-conf\r\n<\/code><\/pre>\n<p>\u53ea\u9700\u4e00\u79cd\u4e2d\u6587\u7ffb\u8bd1\u9009\u9879\uff1a<br \/>\n\u627e\u4e0d\u5230freetype\u548cpng\u5e93\uff0c\u5bfc\u81f4\u5b89\u88c5\u5931\u8d25\u3002<br \/>\n\u5373\u4f7f\u5b89\u88c5\u4e86freetype\uff0c\u4e5f\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>\u5728\u6d77\u5916\u8bba\u575b\u4e0a\u770b\u5230\u6709\u4eba\u63d0\u5230\u5b89\u88c5pkg-conf\u4e4b\u540e\u53ef\u4ee5\u8fd0\u884c\uff0c\u6240\u4ee5\u6211\u4e5f\u8bd5\u4e86\u4e00\u4e0b\uff0c\u7ed3\u679c\u6210\u529f\u4e86\u3002\u6210\u529f\u5b89\u88c5\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u518d\u6b21\u9047\u5230\u4e86matplotlib\u7684\u56f0\u6270 \u7531\u4e8e\u5df2\u7ecf\u5b8c\u6210\u4e86pyenv\u7684\u8bbe\u7f6e\uff0c\u6211\u5f00\u59cb\u4f7f\u7528Python3.5.1\u8fdb\u884c\u7f16\u7a0b [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-26235","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/debian\u4e2a\u4eba\u5907\u5fd8\u5f55-\u5b89\u88c5python\u7684matplotlib-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/debian\u4e2a\u4eba\u5907\u5fd8\u5f55-\u5b89\u88c5python\u7684matplotlib-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-11T15:23:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T11:50:23+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/\",\"name\":\"[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-10-11T15:23:00+00:00\",\"dateModified\":\"2025-08-11T11:50:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"description\":\"\u5173\u4e8e[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib - Blog - Silicon Cloud","description":"\u5173\u4e8e[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/debian\u4e2a\u4eba\u5907\u5fd8\u5f55-\u5b89\u88c5python\u7684matplotlib-2\/","og_locale":"zh_CN","og_type":"article","og_title":"[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib","og_description":"\u5173\u4e8e[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/debian\u4e2a\u4eba\u5907\u5fd8\u5f55-\u5b89\u88c5python\u7684matplotlib-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-10-11T15:23:00+00:00","article_modified_time":"2025-08-11T11:50:23+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/","name":"[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-10-11T15:23:00+00:00","dateModified":"2025-08-11T11:50:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"description":"\u5173\u4e8e[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"[debian][\u4e2a\u4eba\u5907\u5fd8\u5f55] \u5b89\u88c5Python\u7684Matplotlib"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/debian%e4%b8%aa%e4%ba%ba%e5%a4%87%e5%bf%98%e5%bd%95-%e5%ae%89%e8%a3%85python%e7%9a%84matplotlib-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=26235"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26235\/revisions"}],"predecessor-version":[{"id":56019,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26235\/revisions\/56019"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=26235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=26235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=26235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}