{"id":46611,"date":"2022-11-17T21:02:56","date_gmt":"2023-04-03T09:43:09","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/46611-2\/"},"modified":"2024-04-29T01:12:31","modified_gmt":"2024-04-28T17:12:31","slug":"46611-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/46611-2\/","title":{"rendered":""},"content":{"rendered":"<h1>\u6982\u8981<\/h1>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>GCE\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7acb\u3061\u4e0a\u3052<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>jupyter notebook\u5c0e\u5165<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>GCE\u3068GCS\u3092\u63a5\u7d9a<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Kaggle API\u5c0e\u5165<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>Kaggle \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/ol>\n<h1>1 GCE\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7acb\u3061\u4e0a\u3052<\/h1>\n<p>\u305d\u3082\u305d\u3082GCE\u3063\u3066\uff1f https:\/\/qiita.com\/oosha\/items\/746dc4a9ad16f5a6beac<\/p>\n<p>\u5de6\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u306eComputed Engine\u304b\u3089\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/5-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 10.25.23.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/6-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 10.26.15.png\" \/><\/div>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u540d\u524d\u306f\u4efb\u610f\u306e\u540d\u524d<\/p>\n<p>\u30ea\u30fc\u30b8\u30e7\u30f3\u306f\u30b5\u30fc\u30d0\u30fc\u306e\u5834\u6240,\u4eca\u56de\u306feastUS1\u306b\u3059\u308b\u3002\uff08\u5834\u6240\u306b\u3088\u3063\u3066\u306f\u7121\u6599\u67a0\u3067\u306a\u304f\u306a\u308b\u3001\u30a2\u30e1\u30ea\u30ab\u306e\u65b9\u304c\u4f55\u304b\u3068\u30a2\u30af\u30bb\u30b9\u304c\u65e9\u3044\uff09<\/p>\n<p>\u30de\u30b7\u30f3\u306e\u30e1\u30e2\u30ea\u306f\u300130GB(120GB\u3068\u304b\u306f\u5927\u5b66\u306e\u7814\u7a76\u306a\u3069\u306e\u30ec\u30d9\u30eb)<\/p>\n<p>\u6599\u91d1\u306b\u95a2\u3057\u3066\u306f<br \/>\nhttps:\/\/cloud.google.com\/compute\/pricing?hl=ja<\/p>\n<p>\u30e1\u30e2\u30ea\u306e\u82e5\u5e72\u306e\u76ee\u5b89<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/13-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 10.30.18.png\" \/><\/div>\n<p>\u30d6\u30fc\u30c8\u30c7\u30a3\u30b9\u30af\u306fubuntsu16,\u30b5\u30a4\u30ba\u306f50GB\u304f\u3089\u3044\u3042\u308c\u3070\u3044\u3044<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/15-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 10.30.53.png\" \/><\/div>\n<p>\u30a2\u30af\u30bb\u30b9\u6a29\u306f\u5168\u3066\u8a31\u53ef<br \/>\n\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3082\u5168\u3066\u30c1\u30a7\u30c3\u30af<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/17-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 10.32.04.png\" \/><\/div>\n<p>\u4f5c\u6210\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u3001\u5c11\u3057\u5f85\u3064\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u7acb\u3061\u4e0a\u304c\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/19-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 10.33.03.png\" \/><\/div>\n<p>\u30ed\u30fc\u30ab\u30eb\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089ssh\u901a\u4fe1\u3067GCS\u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5<br \/>\nhttps:\/\/qiita.com\/matken11235\/items\/e4e7de36ef5f01f1d1d7<\/p>\n<p>\u51fa\u6765\u308b\u3060\u3051\u5b89\u304fGCE\u3092\u4f7f\u3046\u65b9\u6cd5<br \/>\nhttps:\/\/qiita.com\/Brutus\/items\/22dfd31a681b67837a74<\/p>\n<h1>2 \u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>SSH\u901a\u4fe1\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30b7\u30a7\u30eb\u306b\u5165\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/24-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 10.34.56.png\" \/><\/div>\n<h3>\u5fc5\u8981\u306b\u306a\u308a\u305d\u3046\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u308c\u3066\u3044\u304f<\/h3>\n<p>git\u3084\u3089\u4f55\u3084\u3089<\/p>\n<pre class=\"post-pre\"><code>sudo apt install git tmux build-essential\r\n<\/code><\/pre>\n<p>\u7279\u306btmux\u306f\u304b\u306a\u308a\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>1\u3064\u306e\u753b\u9762\u306e\u4e2d\u3067\u30a6\u30a4\u30f3\u30c9\u30a6\u3092\u8ffd\u52a0\u30fb\u5206\u5272\u3057\u3066\u8907\u6570\u306e\u7aef\u672b\u3092\u958b\u304f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>ssh\u5207\u65ad\u5f8c\u3082\u7aef\u672b\u4e38\u3054\u3068\u7d99\u7d9a\u3055\u308c\u3001\u5f8c\u3067\u307e\u305f\u7e4b\u304e\u76f4\u305b\u308b<\/ol>\n<p>\u7b49\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h1>3 jupyter notebook\u306e\u5c0e\u5165<\/h1>\n<h3>jupyter notebook\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Anaconda\u3092\u5165\u308c\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Anaconda\u306e\u4e2d\u306bjupyter notebook\u3082\u5165\u3063\u3066\u3044\u308b<\/ul>\n<pre class=\"post-pre\"><code>wget https:\/\/repo.anaconda.com\/archive\/Anaconda3-2018.12-Linux-x86_64.sh\r\nsh Anaconda3-2018.12-Linux-x86_64.sh\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3089\u3092\u5b9f\u884c\u3059\u308b\u3068License\u306e\u78ba\u8a8d\u753b\u9762\u304c\u51fa\u308b\u306e\u3067\u3001\u3072\u305f\u3059\u3089Enter\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p>Do you approve the license terms? [yes|no] \u3068\u51fa\u3066\u304d\u305f\u3089yes\u3068\u6253\u3061\u8fbc\u3093\u3067Enter\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Anaconda3 will now be installed into this location:\r\n\/home\/sonics_jr\/anaconda3\r\n\r\n  - Press ENTER to confirm the location\r\n  - Press CTRL-C to abort the installation\r\n  - Or specify a different location below\r\n<\/code><\/pre>\n<p>\u3068\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u7279\u306b\u5909\u66f4\u306e\u5fc5\u8981\u304c\u306a\u3051\u308c\u3070Enter\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nDo you wish the installer to prepend the Anaconda3 install location\r\nto PATH in your \/home\/sonics_jr\/.bashrc ? [yes|no]\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3082\u554f\u984c\u306a\u3051\u308c\u3070yes\u3068\u6253\u3061\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306bsource ~\/.bashrc\u3067bash\u3092\u8aad\u307f\u8fbc\u307f\u76f4\u3057\u3066\u7d42\u4e86\u3067\u3059\u3002<\/p>\n<p>jupyter notebook\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code>#\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\r\njupyter notebook --generate-config\r\n\r\n#SSL\u7528\u306e\u9375\u3092\u4f5c\u6210\r\ncd .jupyter\r\nopenssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mykey.key -out mycert.pem\r\n<\/code><\/pre>\n<p>\u6b21\u306bpython\u3092\u8d77\u52d5\u3057\u3066\u3001python\u4e0a\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u5229\u7528\u3057\u305f\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4e8c\u56de\u5165\u529b\u3057\u3001\u7d50\u679c\u3092\u30b3\u30d4\u30fc\u3057\u3066\u63a7\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n<span class=\"o\">&gt;&gt;&gt;<\/span> <span class=\"kn\">from<\/span> <span class=\"nn\">notebook.auth<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">passwd<\/span><span class=\"p\">;<\/span> <span class=\"n\">passwd<\/span><span class=\"p\">()<\/span>\r\n<span class=\"n\">Enter<\/span> <span class=\"n\">password<\/span><span class=\"p\">:<\/span> \r\n<span class=\"n\">Verify<\/span> <span class=\"n\">password<\/span><span class=\"p\">:<\/span> \r\n<\/code><\/pre>\n<p>vim\u7b49\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u7de8\u96c6\u3059\u308b(\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u4f59\u5206\u306a\u8a2d\u5b9a\u306f\u6d88\u3057\u3066\u3082\u826f\u3044)<\/p>\n<pre class=\"post-pre\"><code>vim ~\/.jupyter\/jupyter_notebook_config.py\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u66f8\u304d\u8fbc\u3080<\/p>\n<pre class=\"post-pre\"><code>#------------------------------------------------------------------------------                                    \r\n# Configurable configuration                                                                                       \r\n#------------------------------------------------------------------------------  \r\nc = get_config()\r\nc.NotebookApp.certfile = u'\/home\/&lt;username&gt;\/.jupyter\/mycert.pem'\r\nc.NotebookApp.keyfile  = u'\/home\/&lt;username&gt;\/.jupyter\/mykey.key'\r\nc.NotebookApp.ip = '0.0.0.0'\r\nc.NotebookApp.open_browser = False\r\nc.NotebookApp.port = 8888\r\nc.NotebookApp.password = u'\u4f5c\u6210\u3057\u305f\u30cf\u30c3\u30b7\u30e5'\r\n<\/code><\/pre>\n<p>username\u306f\u3054\u81ea\u8eab\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3092\u8a18\u5165\u3057\u3066\u304f\u3060\u3055\u3044<br \/>\npwd\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059<\/p>\n<p>\u4ee5\u4e0a\u3067jupyter\u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a<\/h3>\n<p>\u6b21\u306b\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>VPC\u30cd\u30c3\u30c8\u30ef\u30fc\u30af&gt;\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u30eb\u30fc\u30eb\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/56-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 20.27.40.png\" \/><\/div>\n<p>\u305d\u3057\u3066\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u30eb\u30fc\u30eb\u3092\u4f5c\u6210\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/58-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/60-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u540d\u524d\u306f\u4efb\u610f\u3067\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u30bf\u30b0\u3067\u6307\u5b9a\u3057\u305f\u30bf\u30b0\u304c\u3064\u3044\u3066\u3044\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u306b\u9069\u7528\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u306e\u5f8c\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bf\u30b0\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u30bd\u30fc\u30b9IP\u306e\u7bc4\u56f2\u306f\u300c0.0.0.0\/0\u300d\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u5168\u3066\u306eIP\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/p>\n<p>\u30dd\u30fc\u30c8\u306f\u3001jupyter\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3093\u3060\u3082\u306e\u3068\u540c\u3058\u3082\u306e\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u30eb\u30fc\u30eb\u306e\u8a2d\u5b9a\u306f\u7d42\u308f\u308a\u3067\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5074\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bf\u30b0\u306e\u8a2d\u5b9a<\/h3>\n<p>Compute&gt;VM\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u9069\u7528\u3057\u305f\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30af\u30ea\u30c3\u30af\u3057\u7de8\u96c6\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/68-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u30da\u30fc\u30b8\u4e2d\u90e8\u306e\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bf\u30b0\u300d\u306e\u6b04\u306b\u300cjupyter\u300d\u3068\u5165\u529b\u3057\u3066\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/70-0.png\" alt=\"image.png\" \/><\/div>\n<h3>jupyter\u3092\u8d77\u52d5\u3057\u3066\u30a2\u30af\u30bb\u30b9<\/h3>\n<p>jutyer notebook\u3092\u8d77\u52d5\u3055\u305b\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b<\/p>\n<pre class=\"post-pre\"><code>jupyter notebook\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/74-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 23.22.40.png\" \/><\/div>\n<p>\u5916\u90e8IP\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/76-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 23.29.23.png\" \/><\/div>\n<p>\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u304c\u3001\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u30dd\u30fc\u30c8\u3001:8888\u3092URL\u306b\u3064\u3051\u308b\u3068<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/78-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u3053\u306e\u3088\u3046\u306b\u8b66\u544a\u753b\u9762\u304c\u51fa\u307e\u3059\u304c\u3001 \u500b\u4eba\u5229\u7528\u306e\u305f\u3081\u7121\u8996\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u753b\u9762\u304c\u51fa\u305f\u3089\u3001\u5148\u307b\u3069\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/80-0.png\" alt=\"image.png\" \/><\/div>\n<h1>4 GCE\u3068GCS\u3092\u63a5\u7d9a<\/h1>\n<p>GCS Fuse\u3092\u4f7f\u3063\u3066GCS\u30d0\u30b1\u30c3\u30c8\u3092\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3059\u308b<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"post-pre\"><code>$ export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`\r\n$ echo \"deb http:\/\/packages.cloud.google.com\/apt $GCSFUSE_REPO main\" | sudo tee \/etc\/apt\/sources.list.d\/gcsfuse.list\r\n$ curl https:\/\/packages.cloud.google.com\/apt\/doc\/apt-key.gpg | sudo apt-key add -\r\n$ sudo apt-get update\r\n$ sudo apt-get install gcsfuse\r\n<\/code><\/pre>\n<h3>\u30a2\u30ab\u30a6\u30f3\u30c8\u8a8d\u8a3c\u3092\u3059\u308b<\/h3>\n<pre class=\"post-pre\"><code>$ gcloud auth login\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/87-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 23.57.36.png\" \/><\/div>\n<p>\u51fa\u3066\u304d\u305fURL\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<\/p>\n<p>\u3059\u308b\u3068\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u3059\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/90-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-11 23.59.32.png\" \/><\/div>\n<p>\u3059\u308b\u3068\u8a8d\u8a3c\u30b3\u30fc\u30c9\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u30e1\u30e2\u3059\u308b\u3002<\/p>\n<p>\u305d\u306e\u30b3\u30fc\u30c9\u3092shell\u306b\u5165\u529b\u3059\u308b\u3068\u8a8d\u8a3c\u304c\u5b8c\u4e86\u3059\u308b<\/p>\n<h3>Google Cloud Storage\u3067\u30de\u30a6\u30f3\u30c8\u3059\u308b\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u308b<\/h3>\n<p>\u5de6\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u306eStorage\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/95-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-12 0.15.29.png\" \/><\/div>\n<p>\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/97-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-12 0.16.15.png\" \/><\/div>\n<p>\u30d0\u30b1\u30c3\u30c8\u540d\u306f\u4efb\u610f\u306e\u540d\u524d\u3001\u30af\u30e9\u30b9\u306fRegional\u3067\u5834\u6240\u306fGCS\u3068\u540c\u3058\u5834\u6240\u306b\u3059\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/99-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-12 0.18.17.png\" \/><\/div>\n<p>\u4ed6\u306e\u8a2d\u5b9a\u306f\u305d\u306e\u307e\u307e\u3067\u4f5c\u6210<\/p>\n<p>\u30de\u30a6\u30f3\u30c8\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u30de\u30a6\u30f3\u30c8\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code>mkdir sample\r\ngcsfuse \u30d0\u30b1\u30c3\u30c8\u540d\u3000sample\r\n<\/code><\/pre>\n<h1>5 Kaggle API\u306e\u5c0e\u5165<\/h1>\n<p>pip install kaggle\u3000\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>Kaggle\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u30da\u30fc\u30b8\u304b\u3089create API Token\u3092\u4f5c\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/106-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-03-12 0.39.10.png\" \/><\/div>\n<p>kaggle.json\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b<\/p>\n<p>\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5148\u307b\u3069\u30de\u30a6\u30f3\u30c8\u3057\u305fGCR\u306e\u30d0\u30b1\u30c3\u30c8\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b<\/p>\n<p>\u53d6\u5f97\u3057\u305fjson\u30d5\u30a1\u30a4\u30eb\u3092~\/.kaggle\/kaggle.json\u306b\u79fb\u52d5\u3055\u305b\u308b<\/p>\n<pre class=\"post-pre\"><code>#\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\r\nmv kaggle.json ~\/.kaggle\/kaggle.json\r\n<\/code><\/pre>\n<p>kaggle.json\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092600\u306b\u3059\u308b\u3002\u4ee5\u4e0a\u3067\u3001kaggle\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>chmod 600 ~\/.kaggle\/kaggle.json\r\n<\/code><\/pre>\n<h1>6 Kaggle \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h1>\n<h2>kaggle \u30b3\u30de\u30f3\u30c9<\/h2>\n<p>kaggle -h\u3068\u5f8c\u308d\u306b-h\u3092\u3064\u3051\u3066\u3084\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306bhelp\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001help\u3092\u898b\u306a\u304c\u3089\u4f7f\u3048\u3070\u305d\u3093\u306a\u306b\u56f0\u3089\u306a\u3044\u611f\u3058\u3067\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\u30b3\u30de\u30f3\u30c9\u4f8b\u7d50\u679ckaggle competitions list\u30b3\u30f3\u30da\u306e\u4e00\u89a7\u3092\u53d6\u5f97kaggle competitions files -c titanic\u30bf\u30a4\u30bf\u30cb\u30c3\u30af\u30b3\u30f3\u30da\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\u7b49\u3092\u8868\u793akaggle competitions download -c titanic\u30bf\u30a4\u30bf\u30cb\u30c3\u30af\u30b3\u30f3\u30da\u306e\u30c7\u30fc\u30bf\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9kaggle competitions<br \/>\nsubmit -c titanic -f pred.csv -m test\u30bf\u30a4\u30bf\u30cb\u30c3\u30af\u30b3\u30f3\u30da\u306bpred.csv\u3092\u30b5\u30d6\u30df\u30c3\u30c8\u3002<br \/>\n\u30e1\u30c3\u30bb\u30fc\u30b8\u306ftestkaggle competitions submissions -c titanic\u30bf\u30a4\u30bf\u30cb\u30c3\u30af\u30b3\u30f3\u30da\u306e\u81ea\u5206\u306e\u30b5\u30d6\u30df\u30c3\u30c8\u4e00\u89a7\u3092\u8868\u793a<\/div>\n<\/div>\n<p>\u5b9f\u969b\u306b kaggle\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\uff08\u65e9\u3044\uff09<\/p>\n<pre class=\"post-pre\"><code>kaggle competitions download -c titanic\r\n<\/code><\/pre>\n<p>jupyter notebook\u306a\u3069\u3067\u5206\u6790\u958b\u59cb\uff01<\/p>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u308b\u305f\u3073\u306b\u74b0\u5883\u3092\u4f5c\u308b\u306e\u304c\u9762\u5012\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u3067\u3001Docker\u3067\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u53d6\u308b\u3068\u826f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 GCE\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7acb\u3061\u4e0a\u3052 &nbsp; \u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb &nbsp; jupyter no [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46611","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\/46611-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u6982\u8981 GCE\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7acb\u3061\u4e0a\u3052 &nbsp; \u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb &nbsp; jupyter no [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/46611-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-03T09:43:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T17:12:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/5-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \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\/46611-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/46611-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-03T09:43:09+00:00\",\"dateModified\":\"2024-04-28T17:12:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/46611-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\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46611-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\/46611-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u6982\u8981 GCE\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7acb\u3061\u4e0a\u3052 &nbsp; \u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb &nbsp; jupyter no [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/46611-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-03T09:43:09+00:00","article_modified_time":"2024-04-28T17:12:31+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d65b437434c4406d07be7\/5-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46611-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/46611-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-03T09:43:09+00:00","dateModified":"2024-04-28T17:12:31+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/46611-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\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46611-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\/46611","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=46611"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46611\/revisions"}],"predecessor-version":[{"id":70803,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46611\/revisions\/70803"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=46611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=46611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=46611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}