{"id":46137,"date":"2023-03-06T11:55:24","date_gmt":"2023-07-08T15:45:39","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/"},"modified":"2024-04-29T17:37:15","modified_gmt":"2024-04-29T09:37:15","slug":"46137-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/","title":{"rendered":""},"content":{"rendered":"<p>Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.7\u7cfb<\/p>\n<pre class=\"post-pre\"><code>python --version\r\nPython 2.7.12\r\n<\/code><\/pre>\n<p>jupyter notebook\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"post-pre\"><code>sudo pip install jupyter\r\n<\/code><\/pre>\n<p>jupyter notebook\u8d77\u52d5\u306e\u78ba\u8a8d<\/p>\n<pre class=\"post-pre\"><code>jupyter notebook\r\n<\/code><\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u304c\u7acb\u3061\u4e0a\u304c\u308a\u3001jupyter notebook\u304c\u958b\u304f<br \/>\nhttp:\/\/localhost:8888\/tree<\/p>\n<p>\u7d42\u4e86\u306e\u4ed5\u65b9<br \/>\njupyter notebook\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u30b3\u30f3\u30bd\u30fc\u30eb\u3067Ctrl+C\u3067\u30d7\u30ed\u30bb\u30b9\u3092\u7d42\u4e86\u3055\u305b\u308b<\/p>\n<p>\u65b0\u898f\u306eNoteboo\uff4b\u306e\u4f5c\u308a\u65b9<br \/>\njupyter notebook\u306e\u753b\u9762\u306e\u53f3\u4e0a\u3001new\u30dc\u30bf\u30f3\u3092\u62bc\u3057Notebook: Python 2\u3092\u9078\u629e\u3059\u308b<\/p>\n<p>\u65e2\u5b58\u306eNotebook\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u958b\u304f\u5834\u5408<\/p>\n<pre class=\"post-pre\"><code>jupyter notebook FILENAME.ipynb \r\n<\/code><\/pre>\n<p>Notebook\u3092\u4fdd\u5b58\u3059\u308b\u5834\u5408<br \/>\nNotebook\u306e\u753b\u9762\u4e0a\u3067\u53e4\u304d\u826f\u304d\u30d5\u30ed\u30c3\u30d4\u30fc\u30c7\u30a3\u30b9\u30af\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u753b\u9762\u4e0a\u306ejupyter\u306e\u53f3\u306b\u3042\u308b\u300cUntitled1\u300d\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u304b\u7b87\u6240\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u540d\u524d\u5909\u66f4\u7528\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8d77\u52d5\u3059\u308b<\/p>\n<h2>\u30c7\u30fc\u30bf\u5206\u6790\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30eanumpy, scipy, scikit-learn,matplotlib, pandas\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/h2>\n<p>ansible-playbook\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3044\u308b\u5834\u5408\u306f<br \/>\nnumpy, scipy, scikit-learn, matplotlib\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3042\u308b<\/p>\n<p>pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30ea\u30b9\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3066\u78ba\u8a8d\u3059\u308b\u3053\u3068<\/p>\n<pre class=\"post-pre\"><code>pip list\r\n<\/code><\/pre>\n<h1>Pandas\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<pre class=\"post-pre\"><code> sudo pip install pandas\r\n<\/code><\/pre>\n<h2>jupyter notebook\u3067\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u307f\u308b<\/h2>\n<p>jupyter notebook\u3067\u4e0b\u8a18\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u3066\u8868\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u308c\u3070<br \/>\npandas\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u308b<\/p>\n<pre class=\"post-pre\"><code>from sklearn import datasets\r\nimport pandas as pd\r\nfrom collections import OrderedDict\r\n\r\niris = datasets.load_iris()\r\n\r\ndf = pd.concat([pd.DataFrame(iris.data,columns=iris.feature_names),pd.DataFrame(iris.target,columns=[\"species\"])],axis=1)\r\ndf\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.7\u7cfb python &#8211;version Python 2.7.12 jupyte [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46137","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"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>- Blog - Silicon Cloud<\/title>\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\/46137-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.7\u7cfb python --version Python 2.7.12 jupyte [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-08T15:45:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T09:37:15+00:00\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-08T15:45:39+00:00\",\"dateModified\":\"2024-04-29T09:37:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/\"]}]},{\"@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\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","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\/46137-2\/","og_locale":"zh_CN","og_type":"article","og_description":"Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.7\u7cfb python --version Python 2.7.12 jupyte [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-08T15:45:39+00:00","article_modified_time":"2024-04-29T09:37:15+00:00","author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-08T15:45:39+00:00","dateModified":"2024-04-29T09:37:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/46137-2\/"]}]},{"@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\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46137-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\/46137","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=46137"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46137\/revisions"}],"predecessor-version":[{"id":86676,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46137\/revisions\/86676"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=46137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=46137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=46137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}