{"id":15621,"date":"2024-01-25T11:39:58","date_gmt":"2024-01-25T02:39:58","guid":{"rendered":"https:\/\/www.tetsumag.com\/?p=15621"},"modified":"2026-08-01T13:38:33","modified_gmt":"2026-08-01T04:38:33","slug":"376","status":"publish","type":"post","link":"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/","title":{"rendered":"\u3010Windows\u306ePathlib\u3011PosixPath\u30a8\u30e9\u30fc\u306e\u7406\u89e3\u3068\u89e3\u6c7a\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u300cNotImplementedError: cannot instantiate &#8216;PosixPath&#8217; on your system\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u304c\u4f55\u3092\u610f\u5473\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u305d\u3057\u3066\u305d\u308c\u306b\u3069\u306e\u3088\u3046\u306b\u5bfe\u51e6\u3059\u308c\u3070\u3088\u3044\u306e\u304b\u306b\u3064\u3044\u3066\u6398\u308a\u4e0b\u3052\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"RtReVPqOkY\"><p><a href=\"https:\/\/www.tetsumag.com\/2023\/03\/08\/316\/\">\u3010Pycharm\u3011\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u3010\u30d1\u30b9\u3092\u901a\u3059\u3011<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010Pycharm\u3011\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u3010\u30d1\u30b9\u3092\u901a\u3059\u3011&#8221; &#8212; \u3066\u3064\u307e\u3050\" src=\"https:\/\/www.tetsumag.com\/2023\/03\/08\/316\/embed\/#?secret=BwMU2iKPE0#?secret=RtReVPqOkY\" data-secret=\"RtReVPqOkY\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_38 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><label for=\"item\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;\"><svg style=\"fill: #444444;color:#444444\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #444444;color:#444444\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input type=\"checkbox\" id=\"item\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/#Python%E3%81%AEpathlib%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\" title=\"Python\u306epathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3064\u3044\u3066\">Python\u306epathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3064\u3044\u3066<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/#Python%E3%81%AEpathlib%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E5%BD%B9%E5%89%B2\" title=\"Python\u306epathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5f79\u5272\">Python\u306epathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5f79\u5272<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/#NotImplementedError_cannot_instantiate_PosixPath_on_your_system%E3%81%AE%E6%84%8F%E5%91%B3%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%89%E3%81%AA%E3%81%84\" title=\"&#8220;NotImplementedError: cannot instantiate &#8216;PosixPath&#8217; on your system&#8221;\u306e\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u3044\">&#8220;NotImplementedError: cannot instantiate &#8216;PosixPath&#8217; on your system&#8221;\u306e\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u3044<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/#NotImplementedError_%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%AE%E7%99%BA%E7%94%9F%E5%8E%9F%E5%9B%A0\" title=\"&#8220;NotImplementedError&#8221; \u30a8\u30e9\u30fc\u306e\u767a\u751f\u539f\u56e0\">&#8220;NotImplementedError&#8221; \u30a8\u30e9\u30fc\u306e\u767a\u751f\u539f\u56e0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/#pathlib%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AFPosixPath%E3%81%A8WindowsPath%E3%81%A9%E3%81%A1%E3%82%89%E3%81%8B%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B\" title=\"pathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306fPosixPath\u3068WindowsPath\u3069\u3061\u3089\u304b\u3092\u9078\u629e\u3057\u3066\u3044\u308b\">pathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306fPosixPath\u3068WindowsPath\u3069\u3061\u3089\u304b\u3092\u9078\u629e\u3057\u3066\u3044\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/#POSIX%E4%BA%92%E6%8F%9B%E3%81%A8%E3%81%AFLinux%E3%81%AA%E3%81%A9%E3%81%AEUnix%E7%B3%BB%E3%81%AEOS%E3%81%AE%E3%81%93%E3%81%A8\" title=\"POSIX\u4e92\u63db\u3068\u306fLinux\u306a\u3069\u306eUnix\u7cfb\u306eOS\u306e\u3053\u3068\">POSIX\u4e92\u63db\u3068\u306fLinux\u306a\u3069\u306eUnix\u7cfb\u306eOS\u306e\u3053\u3068<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/#%E3%81%BE%E3%81%A8%E3%82%81\" title=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Python%E3%81%AEpathlib%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\"><\/span>Python\u306epathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3064\u3044\u3066<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Python\u5b66\u7fd2\u8005\u306b\u3068\u3063\u3066\u3001pathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u6df1\u3044\u7406\u89e3\u3092\u5f97\u308b\u3053\u3068\u306f\u3068\u3066\u3082\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/docs.python.org\/ja\/3\/library\/pathlib.html\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-domain\">Python documentation<\/div>&nbsp;<div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">25 Users<\/div> <div class=\"lkc-sns-po\">412 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img class=\"lkc-thumbnail-img\" src=\"\/\/tetsumag.com\/blog\/wp-content\/uploads\/pz-linkcard\/cache\/a6dd7e532fa2d5e643eac3bd754b2af19221eacea0498b7d5105ff9d7ea90ea5.jpeg\" alt=\"\" \/><\/figure><div class=\"lkc-title\"><div class=\"lkc-title-text\">pathlib --- \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30d1\u30b9<\/div><\/div><div class=\"lkc-url\">https:\/\/docs.python.org\/ja\/3\/library\/pathlib.html<\/div><div class=\"lkc-excerpt\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9: Lib\/pathlib.py \u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30d1\u30b9\u3092\u8868\u3059\u30af\u30e9\u30b9\u3092\u63d0\u4f9b\u3057\u3066\u3044\u3066\u3001\u69d8\u3005\u306a\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u3064\u3044\u3066\u306e\u9069\u5207\u306a\u610f\u5473\u8ad6\u3092\u305d\u308c\u3089\u306e\u30af\u30e9\u30b9\u306b\u6301\u305f\u305b\u3066\u3044\u307e\u3059\u3002 Path \u30af\u30e9\u30b9\u306f \u7d14\u7c8b\u30d1\u30b9 \u3068 \u5177\u8c61\u30d1\u30b9 \u304b\u3089\u306a\u308a\u307e\u3059\u3002 \u7d14\u7c8b\u30d1\u30b9\u306f I\/O \u3092\u4f34\u308f\u306a\u3044\u7d14\u7c8b\u306a\u8a08\u7b97\u64cd\u4f5c\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u5177\u8c61\u30d1\u30b9\u306f\u7d14\u7c8b\u30d1\u30b9\u3092\u7d99\u627f\u3057\u3066\u3044\u307e\u3059\u304c\u3001 I\/O \u64cd\u4f5c\u3082\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002 \u3042...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Python%E3%81%AEpathlib%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E5%BD%B9%E5%89%B2\"><\/span>Python\u306epathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5f79\u5272<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>pathlib\u306f\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30d1\u30b9\u3092\u6271\u3046\u305f\u3081\u306e\u4fbf\u5229\u306a\u30af\u30e9\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u7570\u306a\u308b\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u3001<span style=\"color: #ff0000;\">PosixPath\uff08POSIX\u4e92\u63db\u30b7\u30b9\u30c6\u30e0\u7528\uff09\u3068WindowsPath\uff08Windows\u30b7\u30b9\u30c6\u30e0\u7528\uff09\u306e2\u3064\u306e\u7570\u306a\u308b\u30af\u30e9\u30b9\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"NotImplementedError_cannot_instantiate_PosixPath_on_your_system%E3%81%AE%E6%84%8F%E5%91%B3%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%89%E3%81%AA%E3%81%84\"><\/span>&#8220;NotImplementedError: cannot instantiate &#8216;PosixPath&#8217; on your system&#8221;\u306e\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u3044<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/github.com\/ultralytics\/yolov5\/issues\/10240\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-domain\">GitHub<\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img class=\"lkc-thumbnail-img\" src=\"\/\/tetsumag.com\/blog\/wp-content\/uploads\/pz-linkcard\/cache\/610fbb041296652803bac24ff8a2b74491a3ac957621205b0db93c16ee97c6d5.jpeg\" alt=\"\" \/><\/figure><div class=\"lkc-title\"><div class=\"lkc-title-text\">NotImplementedError: cannot instantiate &#039;PosixPath&#039; on your system ...<\/div><\/div><div class=\"lkc-url\">https:\/\/github.com\/ultralytics\/yolov5\/issues\/10240<\/div><div class=\"lkc-excerpt\">Search before asking I have searched the YOLOv5 issues and found no similar bug report. YOLOv5 Component No response Bug i train classification and when i test it i got this error raise NotImplemen...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p>\u30b7\u30b9\u30c6\u30e0\u304cPOSIX\u4e92\u63db(UNIX\u7cfb\u3001Linux)\u3067\u306f\u306a\u3044\uff08\u3064\u307e\u308a\u3001Windows\u30b7\u30b9\u30c6\u30e0\uff09\u3067\u3042\u308a\u306a\u304c\u3089\u3001pathlib\u30e9\u30a4\u30d6\u30e9\u30ea\u304cPosixPath\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3057\u3088\u3046\u3068\u3057\u305f\u5834\u5408\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">NotImplementedError: cannot instantiate 'PosixPath' on your system\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"NotImplementedError_%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%AE%E7%99%BA%E7%94%9F%E5%8E%9F%E5%9B%A0\"><\/span>&#8220;NotImplementedError&#8221; \u30a8\u30e9\u30fc\u306e\u767a\u751f\u539f\u56e0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Windows\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067PosixPath\u3092\u4f7f\u7528\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001NotImplementedError\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306f\u3001Windows\u304cPOSIX\u4e92\u63db\u3067\u306a\u3044\u305f\u3081\u3001PosixPath\u30af\u30e9\u30b9\u304c\u9069\u5207\u306b\u6a5f\u80fd\u3057\u306a\u3044\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">import pathlib\r\ntemp = pathlib.PosixPath\r\npathlib.PosixPath = pathlib.WindowsPath\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"pathlib%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AFPosixPath%E3%81%A8WindowsPath%E3%81%A9%E3%81%A1%E3%82%89%E3%81%8B%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B\"><\/span>pathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306fPosixPath\u3068WindowsPath\u3069\u3061\u3089\u304b\u3092\u9078\u629e\u3057\u3066\u3044\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u3053\u306e\u89e3\u6c7a\u7b56\u306f\u3001pathlib.PosixPath\u3092pathlib.WindowsPath\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u3001Windows\u74b0\u5883\u3067\u6b63\u3057\u304f\u30d1\u30b9\u3092\u51e6\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u5909\u66f4\u306b\u3088\u308a\u3001pathlib\u304cWindows\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u9069\u3057\u305f\u65b9\u6cd5\u3067\u30d1\u30b9\u3092\u6271\u3046\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u901a\u5e38\u3001pathlib\u306f\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u7a2e\u985e\u306b\u57fa\u3065\u3044\u3066\u81ea\u52d5\u7684\u306b\u9069\u5207\u306a\u30d1\u30b9\u30af\u30e9\u30b9\uff08PosixPath\u304bWindowsPath\uff09\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u4f55\u3089\u304b\u306e\u7406\u7531\u3067\u3053\u308c\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3001\u624b\u52d5\u3067\u30af\u30e9\u30b9\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"POSIX%E4%BA%92%E6%8F%9B%E3%81%A8%E3%81%AFLinux%E3%81%AA%E3%81%A9%E3%81%AEUnix%E7%B3%BB%E3%81%AEOS%E3%81%AE%E3%81%93%E3%81%A8\"><\/span>POSIX\u4e92\u63db\u3068\u306fLinux\u306a\u3069\u306eUnix\u7cfb\u306eOS\u306e\u3053\u3068<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Unix\u7cfb\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3001\u4f8b\u3048\u3070Linux\u3084macOS\u306a\u3069\u306f\u3001\u3053\u306ePOSIX\u6a19\u6e96\u306b\u5f93\u3063\u3066\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001POSIX\u4e92\u63db\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u5bfe\u3057\u3066\u3001Microsoft Windows\u306f\u7570\u306a\u308b\u8a2d\u8a08\u539f\u5247\u306b\u57fa\u3065\u3044\u3066\u3044\u308b\u305f\u3081\u3001\u6a19\u6e96\u7684\u306aWindows\u30b7\u30b9\u30c6\u30e0\u306fPOSIX\u4e92\u63db\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001Windows\u306b\u306fPOSIX\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u3084Windows Subsystem for Linux\uff08WSL\uff09\u306e\u3088\u3046\u306aPOSIX\u4e92\u63db\u5c64\u3092\u63d0\u4f9b\u3059\u308b\u6a5f\u80fd\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Windows\u74b0\u5883\u306b\u304a\u3051\u308bPosixPath\u30a8\u30e9\u30fc\u306e\u89e3\u6c7a\u7b56\u3068POSIX\u4e92\u63db\u6027\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Python\u306epathlib\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u64cd\u4f5c\u3092\u3088\u308a\u76f4\u611f\u7684\u304b\u3064\u52b9\u7387\u7684\u306b\u884c\u3046\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u306f\u975e\u5e38\u306b\u8f9b\u3044\u3082\u306e\u3067\u3059\u304c\u3001\u6301\u7d9a\u7684\u306a\u5b66\u7fd2\u3068\u5b9f\u8df5\u3067\u3057\u304b\u514b\u670d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u524d\u5411\u304d\u306a\u59ff\u52e2\u3067Python\u3092\u5b66\u3073\u7d9a\u3051\u307e\u3057\u3087\u3046\uff01<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"N7HtAiUP1y\"><p><a href=\"https:\/\/www.tetsumag.com\/2022\/07\/13\/283\/\">\u3010PyTorch\u3011GPU\u306e\u30e1\u30e2\u30ea\u4e0d\u8db3\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u65b9\u6cd5<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010PyTorch\u3011GPU\u306e\u30e1\u30e2\u30ea\u4e0d\u8db3\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u65b9\u6cd5&#8221; &#8212; \u3066\u3064\u307e\u3050\" src=\"https:\/\/www.tetsumag.com\/2022\/07\/13\/283\/embed\/#?secret=kexy2VZ6Da#?secret=N7HtAiUP1y\" data-secret=\"N7HtAiUP1y\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u300cNotImplementedError: cannot instantiate &#8216;PosixPath&#8217; on your system\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u3044\u307e\u3059\u3002  &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/tetsumag.com\/blog\/2024\/01\/25\/376\/\"> <span class=\"screen-reader-text\">\u3010Windows\u306ePathlib\u3011PosixPath\u30a8\u30e9\u30fc\u306e\u7406\u89e3\u3068\u89e3\u6c7a\u65b9\u6cd5<\/span> \u3082\u3063\u3068\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":15683,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","_themeisle_gutenberg_block_has_review":false},"categories":[127],"tags":[95],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/15621"}],"collection":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/comments?post=15621"}],"version-history":[{"count":12,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/15621\/revisions"}],"predecessor-version":[{"id":15688,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/15621\/revisions\/15688"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/media\/15683"}],"wp:attachment":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/media?parent=15621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/categories?post=15621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/tags?post=15621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}