{"id":43741,"date":"2025-08-04T15:52:01","date_gmt":"2025-08-04T06:52:01","guid":{"rendered":"https:\/\/techgym.jp\/?p=43741"},"modified":"2025-10-27T18:15:48","modified_gmt":"2025-10-27T09:15:48","slug":"python-import-dir","status":"publish","type":"post","link":"https:\/\/techgym.jp\/column\/python-import-dir\/","title":{"rendered":"Python\u3067import\u306e\u5bfe\u8c61\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\uff5csys.path\u3068\u30e2\u30b8\u30e5\u30fc\u30eb\u691c\u7d22\u30d1\u30b9\u89e3\u8aac"},"content":{"rendered":"\n<p><style>\n.ranking-table {\n    width: 100%;\n    border-collapse: collapse;\n    margin: 20px 0;\n}\n.ranking-table td {\n    padding: 20px;\n    border: 1px solid #e0e0e0;\n    vertical-align: top;\n}\n.ranking-table td:first-child {\n    width: 200px;\n    text-align: center;\n    background-color: #f9f9f9;\n}\n.ranking-table img {\n    display: block;\n    margin: 10px auto;\n    max-width: 100%;\n    height: auto;\n}\n.ranking-table a {\n    color: #0066cc;\n    text-decoration: none;\n    font-weight: bold;\n}\n.ranking-table a:hover {\n    text-decoration: underline;\n}\n<\/style><\/p>\n<table class=\"ranking-table\">\n<tbody>\n<tr>\n<td><a href=\"\/\/af.moshimo.com\/af\/c\/click?a_id=5161740&amp;p_id=6820&amp;pc_id=19517&amp;pl_id=90728\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\" attributionsrc=\"\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/image.moshimo.com\/af-img\/6634\/000000090728.png?resize=120%2C60\" width=\"120\" height=\"60\" style=\"border: none;\" \/><\/a><img decoding=\"async\" src=\"\/\/i.moshimo.com\/af\/i\/impression?a_id=5161740&amp;p_id=6820&amp;pc_id=19517&amp;pl_id=90728\" width=\"1\" height=\"1\" style=\"border: none;\" loading=\"lazy\" \/><strong><a href=\"http:\/\/msm.to\/2ULVG5u\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9<\/a><\/strong><\/td>\n<td>\n<p><strong>20\u4e07\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u304b\u3089\u3001\u526f\u696d\u306b\u6700\u9069\u306a\u30ea\u30e2\u30fc\u30c8\u30fb\u90313\u301c\u306e\u6848\u4ef6\u3092\u4e00\u62ec\u691c\u7d22\u3067\u304d\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3002<\/strong><strong>\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u767b\u9332\u3067AI\u30b9\u30ab\u30a6\u30c8\u304c\u81ea\u52d5\u7684\u306b\u30de\u30c3\u30c1\u30f3\u30b0\u6848\u4ef6\u3092\u63d0\u6848\u3002<\/strong><strong>\u5e02\u5834\u7d71\u8a08\u3084\u5358\u4fa1\u76f8\u5834\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u53e3\u30b3\u30df\u3082\u7121\u6599\u3067\u95b2\u89a7\u53ef\u80fd\u306a\u305f\u3081\u3001\u672c\u696d\u3092\u7d9a\u3051\u306a\u304c\u3089\u52b9\u7387\u7684\u306b\u9ad8\u5358\u4fa1\u306e\u526f\u696d\u6848\u4ef6\u3092\u63a2\u305b\u307e\u3059\u3002<a href=\"http:\/\/msm.to\/2ULVG5u\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9<\/a><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+61C2P\" rel=\"nofollow\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"120\" height=\"60\" alt=\"\" src=\"https:\/\/www29.a8.net\/svt\/bgt?aid=250928846375&amp;wid=001&amp;eno=01&amp;mid=s00000018714001014000&amp;mc=1\" \/><\/a> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www14.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" \/> <strong><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+5YJRM\" target=\"_blank\" rel=\"noopener\">IT\u30d7\u30ed\u30d1\u30fc\u30c8\u30ca\u30fc\u30ba<\/a><\/strong><\/td>\n<td>\n<p><strong>\u90312\u301c3\u65e5\u304b\u3089\u50cd\u3051\u308b\u67d4\u8edf\u306a\u6848\u4ef6\u304c\u696d\u754c\u30c8\u30c3\u30d7\u30af\u30e9\u30b9\u306e\u8c4a\u5bcc\u3055\u3092\u8a87\u308b\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3002<\/strong><strong>\u30a8\u30f3\u30c9\u76f4\u5951\u7d04\u306e\u305f\u3081\u9ad8\u5358\u4fa1\u3067\u3001\u90313\u65e5\u7a3c\u50cd\u3067\u3082\u5341\u5206\u306a\u5831\u916c\u3092\u5f97\u3089\u308c\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u3084\u6642\u9593\u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u306a\u6848\u4ef6\u3082\u591a\u6570\u3002\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30fb\u30d9\u30f3\u30c1\u30e3\u30fc\u4e2d\u5fc3\u3067\u3001\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u3092\u4f7f\u3063\u305f\u9b45\u529b\u7684\u306a\u6848\u4ef6\u304c\u63c3\u3063\u3066\u3044\u307e\u3059\u3002\u5c02\u5c5e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u6848\u4ef6\u7d39\u4ecb\u304b\u3089\u5951\u7d04\u4ea4\u6e09\u307e\u3067\u30b5\u30dd\u30fc\u30c8\u3002\u5229\u7528\u4f01\u696d2,000\u793e\u4ee5\u4e0a\u306e\u5b9f\u7e3e\u3002<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+5YJRM\" target=\"_blank\" rel=\"noopener\">IT\u30d7\u30ed\u30d1\u30fc\u30c8\u30ca\u30fc\u30ba<\/a><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BYLJL\" rel=\"nofollow\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"100\" height=\"60\" alt=\"\" src=\"https:\/\/www21.a8.net\/svt\/bgt?aid=251019989646&amp;wid=001&amp;eno=01&amp;mid=s00000017868002009000&amp;mc=1\" \/><\/a> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www16.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" \/> <strong> <a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BWVTE\" target=\"_blank\" rel=\"noopener\">Midworks<\/a> <\/strong><\/td>\n<td><strong>10,000\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u3092\u4fdd\u6709\u3057\u3001\u90313\u65e5\u301c\u30fb\u30d5\u30eb\u30ea\u30e2\u30fc\u30c8\u306a\u3069\u67d4\u8edf\u306a\u50cd\u304d\u65b9\u306b\u5bfe\u5fdc\u3002\u9ad8\u5358\u4fa1\u6848\u4ef6\u304c\u8c4a\u5bcc\u3067\u3001\u5831\u916c\u4fdd\u969c\u5236\u5ea6\uff0860%\uff09\u3084\u4fdd\u967a\u6599\u8ca0\u62c5\uff0850%\uff09\u306a\u3069\u6b63\u793e\u54e1\u4e26\u307f\u306e\u624b\u539a\u3044\u798f\u5229\u539a\u751f\u304c\u7279\u5fb4\u3002\u901a\u52e4\u4ea4\u901a\u8cbb\uff08\u67083\u4e07\u5186\uff09\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u8cbb\u7528\uff08\u67081\u4e07\u5186\uff09\u306e\u652f\u7d66\u306b\u52a0\u3048\u3001\u30ea\u30ed\u30af\u30e9\u30d6\u30fbfreee\u304c\u7121\u6599\u5229\u7528\u53ef\u80fd\u3002\u975e\u516c\u958b\u6848\u4ef680%\u4ee5\u4e0a\u3001\u652f\u6255\u3044\u30b5\u30a4\u30c820\u65e5\u3067\u5b89\u5fc3\u3057\u3066\u7a3c\u50cd\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BWVTE\" target=\"_blank\" rel=\"noopener\">Midworks<\/a><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p><iframe loading=\"lazy\" width=\"560\" height=\"314\" src=\"\/\/www.youtube.com\/embed\/7iX9nAJE0cE\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n<h2>Python\u306eimport\u30d1\u30b9\u3068\u306f\uff1f\u57fa\u790e\u77e5\u8b58<\/h2>\n<p>Python\u304c\u30e2\u30b8\u30e5\u30fc\u30eb\u3084\u30d1\u30c3\u30b1\u30fc\u30b8\u3092import\u3059\u308b\u969b\u306b\u691c\u7d22\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30b9\u3092\u300c\u30e2\u30b8\u30e5\u30fc\u30eb\u691c\u7d22\u30d1\u30b9\u300d\u307e\u305f\u306f\u300cimport\u30d1\u30b9\u300d\u3068\u547c\u3073\u307e\u3059\u3002\u3053\u306e\u30d1\u30b9\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u3067\u3001ImportError\u306e\u89e3\u6c7a\u3084\u30ab\u30b9\u30bf\u30e0\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u914d\u7f6e\u304c\u52b9\u7387\u7684\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n<h2>\u65b9\u6cd51\uff1asys.path\u3067import\u30d1\u30b9\u3092\u78ba\u8a8d<\/h2>\n<h3>\u57fa\u672c\u7684\u306a\u30d1\u30b9\u78ba\u8a8d<\/h3>\n<p><strong>\u5168\u3066\u306eimport\u30d1\u30b9\u3092\u8868\u793a<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nprint(sys.path)\n<\/code><\/pre>\n<p><strong>\u898b\u3084\u3059\u304f\u6574\u7406\u3057\u3066\u8868\u793a<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nfor i, path in enumerate(sys.path):\n    print(f\"{i}: {path}\")\n<\/code><\/pre>\n<p><strong>\u73fe\u5728\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u78ba\u8a8d<\/strong><\/p>\n<pre><code class=\"language-python\">import os\nprint(f\"Current directory: {os.getcwd()}\")\nprint(f\"Script directory: {os.path.dirname(os.path.abspath(__file__))}\")\n<\/code><\/pre>\n<h3>\u30d1\u30b9\u306e\u7a2e\u985e\u3068\u512a\u5148\u9806\u4f4d<\/h3>\n<p><strong>\u30d1\u30b9\u306e\u8a73\u7d30\u60c5\u5831\u3092\u8868\u793a<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nimport os\n\nprint(\"Python import paths:\")\nprint(\"-\" * 50)\nfor i, path in enumerate(sys.path):\n    if os.path.exists(path):\n        status = \"EXISTS\"\n    else:\n        status = \"NOT FOUND\"\n    print(f\"{i:2d}: {status:10s} {path}\")\n<\/code><\/pre>\n<h2>\u65b9\u6cd52\uff1a\u7279\u5b9a\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30d1\u30b9\u3092\u78ba\u8a8d<\/h2>\n<h3>\u30a4\u30f3\u30dd\u30fc\u30c8\u6e08\u307f\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30d1\u30b9\u78ba\u8a8d<\/h3>\n<p><strong>__file__\u5c5e\u6027\u3092\u4f7f\u7528<\/strong><\/p>\n<pre><code class=\"language-python\">import os\nprint(f\"os module path: {os.__file__}\")\n\nimport sys\nprint(f\"sys module path: {sys.__file__}\")\n\nimport json\nprint(f\"json module path: {json.__file__}\")\n<\/code><\/pre>\n<p><strong>\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30d1\u30b9<\/strong><\/p>\n<pre><code class=\"language-python\">try:\n    import numpy\n    print(f\"numpy path: {numpy.__file__}\")\nexcept ImportError:\n    print(\"numpy is not installed\")\n\ntry:\n    import pandas\n    print(f\"pandas path: {pandas.__file__}\")\nexcept ImportError:\n    print(\"pandas is not installed\")\n<\/code><\/pre>\n<h3>inspect \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528<\/h3>\n<p><strong>\u8a73\u7d30\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u60c5\u5831\u3092\u53d6\u5f97<\/strong><\/p>\n<pre><code class=\"language-python\">import inspect\nimport os\n\ndef get_module_info(module):\n    try:\n        module_obj = __import__(module)\n        file_path = inspect.getfile(module_obj)\n        abs_path = os.path.abspath(file_path)\n        print(f\"Module: {module}\")\n        print(f\"File: {file_path}\")\n        print(f\"Absolute path: {abs_path}\")\n        print(f\"Directory: {os.path.dirname(abs_path)}\")\n    except Exception as e:\n        print(f\"Error getting info for {module}: {e}\")\n\nget_module_info('os')\nget_module_info('json')\n<\/code><\/pre>\n<h2>\u65b9\u6cd53\uff1a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u78ba\u8a8d<\/h2>\n<h3>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e__path__\u5c5e\u6027<\/h3>\n<p><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d1\u30b9\u78ba\u8a8d<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nif 'numpy' in sys.modules:\n    import numpy\n    print(f\"numpy package paths: {numpy.__path__}\")\n\nimport os\nprint(f\"os module: {os}\")\nprint(f\"os.__file__: {os.__file__}\")\n<\/code><\/pre>\n<p><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u968e\u5c64\u306e\u78ba\u8a8d<\/strong><\/p>\n<pre><code class=\"language-python\">def show_package_structure(package_name):\n    try:\n        package = __import__(package_name)\n        print(f\"Package: {package_name}\")\n        if hasattr(package, '__path__'):\n            print(f\"Package paths: {package.__path__}\")\n        if hasattr(package, '__file__'):\n            print(f\"Package file: {package.__file__}\")\n    except ImportError:\n        print(f\"Package {package_name} not found\")\n\nshow_package_structure('json')\nshow_package_structure('urllib')\n<\/code><\/pre>\n<h2>\u65b9\u6cd54\uff1a\u74b0\u5883\u5909\u6570\u3068\u30d1\u30b9\u8a2d\u5b9a\u306e\u78ba\u8a8d<\/h2>\n<h3>PYTHONPATH\u74b0\u5883\u5909\u6570\u306e\u78ba\u8a8d<\/h3>\n<p><strong>\u74b0\u5883\u5909\u6570\u306e\u8868\u793a<\/strong><\/p>\n<pre><code class=\"language-python\">import os\npythonpath = os.environ.get('PYTHONPATH', 'Not set')\nprint(f\"PYTHONPATH: {pythonpath}\")\n\n# \u5b9f\u969b\u306esys.path\u3068\u6bd4\u8f03\nimport sys\nprint(f\"sys.path length: {len(sys.path)}\")\nprint(\"First 3 paths in sys.path:\")\nfor i, path in enumerate(sys.path[:3]):\n    print(f\"  {i}: {path}\")\n<\/code><\/pre>\n<h3>site-packages\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u78ba\u8a8d<\/h3>\n<p><strong>site-packages\u306e\u5834\u6240\u3092\u7279\u5b9a<\/strong><\/p>\n<pre><code class=\"language-python\">import site\nprint(\"User site-packages:\", site.getusersitepackages())\nprint(\"Global site-packages:\", site.getsitepackages())\n<\/code><\/pre>\n<p><strong>\u8a73\u7d30\u306asite\u60c5\u5831<\/strong><\/p>\n<pre><code class=\"language-python\">import site\nimport sys\n\nprint(\"Site module information:\")\nprint(\"-\" * 30)\nprint(f\"Python executable: {sys.executable}\")\nprint(f\"Python version: {sys.version}\")\nprint(f\"User base: {site.USER_BASE}\")\nprint(f\"User site: {site.USER_SITE}\")\n\nprint(\"\\nSite packages directories:\")\nfor i, path in enumerate(site.getsitepackages()):\n    print(f\"  {i}: {path}\")\n<\/code><\/pre>\n<h2>\u65b9\u6cd55\uff1a\u52d5\u7684\u306a\u30d1\u30b9\u64cd\u4f5c\u3068\u78ba\u8a8d<\/h2>\n<h3>\u30d1\u30b9\u306e\u52d5\u7684\u8ffd\u52a0\u3068\u78ba\u8a8d<\/h3>\n<p><strong>sys.path\u3078\u306e\u30d1\u30b9\u8ffd\u52a0<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nimport os\n\n# \u73fe\u5728\u306e\u30d1\u30b9\u6570\u3092\u8a18\u9332\noriginal_count = len(sys.path)\nprint(f\"Original path count: {original_count}\")\n\n# \u65b0\u3057\u3044\u30d1\u30b9\u3092\u8ffd\u52a0\ncustom_path = \"\/path\/to\/custom\/modules\"\nif custom_path not in sys.path:\n    sys.path.append(custom_path)\n\nprint(f\"New path count: {len(sys.path)}\")\nprint(f\"Added path: {sys.path[-1]}\")\n<\/code><\/pre>\n<p><strong>\u4e00\u6642\u7684\u306a\u30d1\u30b9\u8ffd\u52a0\u306e\u95a2\u6570\u5316<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nfrom contextlib import contextmanager\n\n@contextmanager\ndef temporary_path(path):\n    \"\"\"\u4e00\u6642\u7684\u306bsys.path\u306b\u30d1\u30b9\u3092\u8ffd\u52a0\"\"\"\n    sys.path.insert(0, path)\n    try:\n        yield\n    finally:\n        sys.path.remove(path)\n\n# \u4f7f\u7528\u4f8b\nwith temporary_path('\/tmp\/custom_modules'):\n    print(\"Temporary path added\")\n    print(f\"First path: {sys.path[0]}\")\n    # \u3053\u306e\u7bc4\u56f2\u5185\u3067\u306e\u307f\u30d1\u30b9\u304c\u6709\u52b9\n<\/code><\/pre>\n<h2>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1aImportError\u89e3\u6c7a<\/h2>\n<h3>\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306e\u8a3a\u65ad<\/h3>\n<p><strong>\u8a3a\u65ad\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nimport os\n\ndef diagnose_import_error(module_name):\n    print(f\"Diagnosing import error for: {module_name}\")\n    print(\"-\" * 40)\n    \n    # 1. sys.path\u306e\u78ba\u8a8d\n    print(\"1. Checking sys.path:\")\n    for i, path in enumerate(sys.path):\n        exists = \"\u2713\" if os.path.exists(path) else \"\u2717\"\n        print(f\"   {exists} {path}\")\n    \n    # 2. \u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\n    print(f\"\\n2. Current working directory: {os.getcwd()}\")\n    \n    # 3. \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\n    try:\n        script_dir = os.path.dirname(os.path.abspath(__file__))\n        print(f\"3. Script directory: {script_dir}\")\n    except NameError:\n        print(\"3. Script directory: Not available (interactive mode)\")\n    \n    # 4. \u30a4\u30f3\u30dd\u30fc\u30c8\u8a66\u884c\n    print(f\"\\n4. Trying to import {module_name}:\")\n    try:\n        module = __import__(module_name)\n        print(f\"   \u2713 Success: {module.__file__ if hasattr(module, '__file__') else 'Built-in module'}\")\n    except ImportError as e:\n        print(f\"   \u2717 Failed: {e}\")\n\n# \u4f7f\u7528\u4f8b\ndiagnose_import_error('my_custom_module')\n<\/code><\/pre>\n<h3>\u30d1\u30c3\u30b1\u30fc\u30b8\u69cb\u9020\u306e\u78ba\u8a8d<\/h3>\n<p><strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u306e\u8868\u793a<\/strong><\/p>\n<pre><code class=\"language-python\">import os\n\ndef show_directory_structure(path, max_depth=2, current_depth=0):\n    \"\"\"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3092\u8868\u793a\"\"\"\n    if current_depth &gt; max_depth or not os.path.exists(path):\n        return\n    \n    indent = \"  \" * current_depth\n    print(f\"{indent}{os.path.basename(path)}\/\")\n    \n    try:\n        for item in sorted(os.listdir(path)):\n            item_path = os.path.join(path, item)\n            if os.path.isdir(item_path):\n                show_directory_structure(item_path, max_depth, current_depth + 1)\n            elif item.endswith(('.py', '.pyd', '.so')):\n                print(f\"{indent}  {item}\")\n    except PermissionError:\n        print(f\"{indent}  [Permission denied]\")\n\n# \u4f7f\u7528\u4f8b\nshow_directory_structure('\/usr\/lib\/python3.9\/site-packages', max_depth=1)\n<\/code><\/pre>\n<h2>\u5b9f\u8df5\u7684\u306a\u6d3b\u7528\u4f8b<\/h2>\n<h3>\u958b\u767a\u74b0\u5883\u306e\u8a3a\u65ad\u30c4\u30fc\u30eb<\/h3>\n<p><strong>\u74b0\u5883\u8a3a\u65ad\u306e\u7d71\u5408\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nimport os\nimport site\nimport platform\n\ndef comprehensive_environment_check():\n    print(\"Python Environment Diagnostic Report\")\n    print(\"=\" * 50)\n    \n    # \u57fa\u672c\u60c5\u5831\n    print(f\"Python version: {sys.version}\")\n    print(f\"Platform: {platform.platform()}\")\n    print(f\"Executable: {sys.executable}\")\n    print(f\"Current directory: {os.getcwd()}\")\n    \n    # \u30d1\u30b9\u60c5\u5831\n    print(f\"\\nPYTHONPATH: {os.environ.get('PYTHONPATH', 'Not set')}\")\n    print(f\"User site: {site.USER_SITE}\")\n    print(f\"User base: {site.USER_BASE}\")\n    \n    # sys.path\u8a73\u7d30\n    print(f\"\\nsys.path ({len(sys.path)} entries):\")\n    for i, path in enumerate(sys.path):\n        exists = \"\u2713\" if os.path.exists(path) else \"\u2717\"\n        print(f\"  {i:2d} {exists} {path}\")\n    \n    # \u30b5\u30a4\u30c8\u30d1\u30c3\u30b1\u30fc\u30b8\n    print(f\"\\nSite packages:\")\n    for path in site.getsitepackages():\n        exists = \"\u2713\" if os.path.exists(path) else \"\u2717\"\n        print(f\"  {exists} {path}\")\n\ncomprehensive_environment_check()\n<\/code><\/pre>\n<h3>\u30e2\u30b8\u30e5\u30fc\u30eb\u691c\u7d22\u306e\u6700\u9069\u5316<\/h3>\n<p><strong>\u52b9\u7387\u7684\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u691c\u7d22<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nimport os\nimport importlib.util\n\ndef find_module_path(module_name):\n    \"\"\"\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30d1\u30b9\u3092\u52b9\u7387\u7684\u306b\u691c\u7d22\"\"\"\n    # 1. importlib.util\u3092\u4f7f\u7528\n    spec = importlib.util.find_spec(module_name)\n    if spec and spec.origin:\n        return spec.origin\n    \n    # 2. sys.path\u3092\u624b\u52d5\u691c\u7d22\n    for path in sys.path:\n        if os.path.isdir(path):\n            module_path = os.path.join(path, f\"{module_name}.py\")\n            if os.path.exists(module_path):\n                return module_path\n            \n            # \u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u3082\u691c\u7d22\n            package_path = os.path.join(path, module_name, \"__init__.py\")\n            if os.path.exists(package_path):\n                return package_path\n    \n    return None\n\n# \u4f7f\u7528\u4f8b\nmodules = ['os', 'sys', 'numpy', 'pandas']\nfor module in modules:\n    path = find_module_path(module)\n    print(f\"{module}: {path or 'Not found'}\")\n<\/code><\/pre>\n<h2>\u4eee\u60f3\u74b0\u5883\u3067\u306e\u30d1\u30b9\u7ba1\u7406<\/h2>\n<h3>\u4eee\u60f3\u74b0\u5883\u306e\u8b58\u5225<\/h3>\n<p><strong>\u4eee\u60f3\u74b0\u5883\u306e\u78ba\u8a8d<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\nimport os\n\ndef check_virtual_environment():\n    \"\"\"\u4eee\u60f3\u74b0\u5883\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u78ba\u8a8d\"\"\"\n    \n    # \u4eee\u60f3\u74b0\u5883\u306e\u691c\u51fa\n    if hasattr(sys, 'real_prefix') or (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix):\n        print(\"\u2713 Running in virtual environment\")\n        print(f\"  Virtual environment: {sys.prefix}\")\n        print(f\"  Base Python: {sys.base_prefix}\")\n    else:\n        print(\"\u2717 Running in system Python\")\n        print(f\"  Python prefix: {sys.prefix}\")\n    \n    # \u74b0\u5883\u5909\u6570\u306e\u78ba\u8a8d\n    venv_vars = ['VIRTUAL_ENV', 'CONDA_DEFAULT_ENV', 'PIPENV_ACTIVE']\n    for var in venv_vars:\n        value = os.environ.get(var)\n        if value:\n            print(f\"  {var}: {value}\")\n\ncheck_virtual_environment()\n<\/code><\/pre>\n<h2>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316<\/h2>\n<h3>import\u306e\u9ad8\u901f\u5316<\/h3>\n<p><strong>import\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u78ba\u8a8d<\/strong><\/p>\n<pre><code class=\"language-python\">import sys\n\ndef show_import_cache():\n    \"\"\"\u30a4\u30f3\u30dd\u30fc\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u72b6\u6cc1\u3092\u8868\u793a\"\"\"\n    print(f\"Loaded modules: {len(sys.modules)}\")\n    print(\"Recently imported modules:\")\n    \n    # \u6700\u8fd1\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8868\u793a\n    builtin_modules = set(sys.builtin_module_names)\n    custom_modules = []\n    \n    for name, module in sys.modules.items():\n        if (name not in builtin_modules and \n            hasattr(module, '__file__') and \n            module.__file__):\n            custom_modules.append((name, module.__file__))\n    \n    for name, path in sorted(custom_modules)[:10]:\n        print(f\"  {name}: {path}\")\n\nshow_import_cache()\n<\/code><\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Python\u306eimport\u30d1\u30b9\u78ba\u8a8d\u306f\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u7ba1\u7406\u3068\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u57fa\u672c\u30b9\u30ad\u30eb\u3067\u3059\u3002\u9069\u5207\u306a\u30d1\u30b9\u78ba\u8a8d\u306b\u3088\u308a\u3001ImportError\u306e\u8fc5\u901f\u306a\u89e3\u6c7a\u3068\u52b9\u7387\u7684\u306a\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u4e3b\u8981\u306a\u30dd\u30a4\u30f3\u30c8:<\/strong><\/p>\n<ul>\n<li><strong>sys.path<\/strong>: \u57fa\u672c\u7684\u306aimport\u30d1\u30b9\u306e\u78ba\u8a8d<\/li>\n<li><strong>__file__\u5c5e\u6027<\/strong>: \u7279\u5b9a\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5834\u6240\u78ba\u8a8d<\/li>\n<li><strong>site module<\/strong>: site-packages\u306e\u7ba1\u7406<\/li>\n<li><strong>\u74b0\u5883\u5909\u6570<\/strong>: PYTHONPATH\u306e\u6d3b\u7528<\/li>\n<li><strong>\u8a3a\u65ad\u30c4\u30fc\u30eb<\/strong>: \u7d71\u5408\u7684\u306a\u74b0\u5883\u78ba\u8a8d<\/li>\n<\/ul>\n<p>\u5b9a\u671f\u7684\u306a\u30d1\u30b9\u78ba\u8a8d\u3068\u9069\u5207\u306a\u74b0\u5883\u7ba1\u7406\u306b\u3088\u308a\u3001Python\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4fdd\u5b88\u6027\u3068\u53ef\u642c\u6027\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7279\u306b\u8907\u6570\u306e\u4eee\u60f3\u74b0\u5883\u3084\u8907\u96d1\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u69cb\u9020\u3092\u6271\u3046\u5834\u5408\u3001\u3053\u308c\u3089\u306e\u6280\u8853\u306f\u5fc5\u9808\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><iframe loading=\"lazy\" width=\"560\" height=\"314\" src=\"\/\/www.youtube.com\/embed\/7iX9nAJE0cE\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u25a0<a href=\"https:\/\/amzn.to\/3VxGkpx\">\u300c\u3089\u304f\u3089\u304fPython\u587e\u300d\u304c\u5207\u308a\u958b\u304f\u300c\u546a\u6587\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u300d\u3068\u306f\uff1f<\/a><\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Pqh6ETTWSH\"><a href=\"https:\/\/techgym.jp\/about\/rakurakupython\/\">\u3010\u9769\u547d\u7684\u5b66\u7fd2\u6cd5\u3011\u300c\u3089\u304f\u3089\u304fPython\u587e\u300d\u304c\u5207\u308a\u958b\u304f\u3001\u546a\u6587\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u3044\u3046\u65b0\u6642\u4ee3\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7fd2\u5f97\u8853<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u3010\u9769\u547d\u7684\u5b66\u7fd2\u6cd5\u3011\u300c\u3089\u304f\u3089\u304fPython\u587e\u300d\u304c\u5207\u308a\u958b\u304f\u3001\u546a\u6587\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u3044\u3046\u65b0\u6642\u4ee3\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7fd2\u5f97\u8853&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/about\/rakurakupython\/embed\/#?secret=nR2MTBM542#?secret=Pqh6ETTWSH\" data-secret=\"Pqh6ETTWSH\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u25a0\u30d7\u30ed\u30f3\u30d7\u30c8\u3060\u3051\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30a2\u30d7\u30ea\u3092\u958b\u767a\u30fb\u516c\u958b\u3057\u3066\u307f\u305f\uff01\uff01<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"O7rr5egOk0\"><a href=\"https:\/\/techgym.jp\/column\/ori-app\/\">\u30d7\u30ed\u30f3\u30d7\u30c8\u3060\u3051\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30a2\u30d7\u30ea\u3092\u958b\u767a\u30fb\u516c\u958b\u3057\u3066\u307f\u305f\uff01\uff01<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u30d7\u30ed\u30f3\u30d7\u30c8\u3060\u3051\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30a2\u30d7\u30ea\u3092\u958b\u767a\u30fb\u516c\u958b\u3057\u3066\u307f\u305f\uff01\uff01&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/column\/ori-app\/embed\/#?secret=QSpKnsMOsQ#?secret=O7rr5egOk0\" data-secret=\"O7rr5egOk0\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u25a0AI\u6642\u4ee3\u306e\u7b2c\u4e00\u6b69\uff01\u300cAI\u99c6\u52d5\u958b\u767a\u30b3\u30fc\u30b9\u300d\u306f\u3058\u3081\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<p>\u30c6\u30c3\u30af\u30b8\u30e0\u6771\u4eac\u672c\u6821\u3067\u5148\u884c\u958b\u59cb\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"zofzVm7p9Q\"><a href=\"https:\/\/techgym.jp\/about\/ai-driven-development\/\">AI\u99c6\u52d5\u958b\u767a\/\u751f\u6210AI\u30a8\u30f3\u30b8\u30cb\u30a2\u30b3\u30fc\u30b9\uff08\u521d\u5fc3\u8005\u5411\u3051\uff09<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;AI\u99c6\u52d5\u958b\u767a\/\u751f\u6210AI\u30a8\u30f3\u30b8\u30cb\u30a2\u30b3\u30fc\u30b9\uff08\u521d\u5fc3\u8005\u5411\u3051\uff09&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/about\/ai-driven-development\/embed\/#?secret=dZhdYYwNqK#?secret=zofzVm7p9Q\" data-secret=\"zofzVm7p9Q\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u25a0\u30c6\u30c3\u30af\u30b8\u30e0\u6771\u4eac\u672c\u6821<\/p>\n\n\n\n<p>\u300c\u6b66\u7530\u587e\u300d\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7248\u3068\u3044\u3048\u3070\u300c\u30c6\u30c3\u30af\u30b8\u30e0\u300d\u3002<br>\u8b1b\u7fa9\u52d5\u753b\u306a\u3057\u3001\u6559\u79d1\u66f8\u306a\u3057\u3002\u300c\u9032\u6357\u7ba1\u7406\u3068\u30b3\u30fc\u30c1\u30f3\u30b0\u300d\u3067\u52b9\u7387\u5b66\u7fd2\u3002<br>\u3088\u308a\u65e9\u304f\u3001\u3088\u308a\u5b89\u304f\u3001\u3057\u304b\u3082\u5bfe\u9762\u578b\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"5IuyEIyju8\"><a href=\"https:\/\/techgym.jp\/tokyo\/tokyo_honko\/\">\u30c6\u30c3\u30af\u30b8\u30e0\u6771\u4eac\u672c\u6821<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u30c6\u30c3\u30af\u30b8\u30e0\u6771\u4eac\u672c\u6821&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/tokyo\/tokyo_honko\/embed\/#?secret=VqQdnqKNz7#?secret=5IuyEIyju8\" data-secret=\"5IuyEIyju8\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\uff1c\u77ed\u671f\u8b1b\u7fd2\uff1e5\u65e5\u30675\u4e07\u5186\u306e\u300cPython\u30df\u30cb\u30ad\u30e3\u30f3\u30d7\u300d\u958b\u50ac\u4e2d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"wynIbgtEcJ\"><a href=\"https:\/\/techgym.jp\/event\/nagatacho_camp\/\">\u3010\u6700\u901f\u30fb\u78ba\u5b9f\u3011\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u653b\u7565\u300c\u6c38\u7530\u753aPython\u30df\u30cb\u30ad\u30e3\u30f3\u30d7\u300d\u30105\u65e5\u9593\u30675\u4e07\u5186\u3011<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u3010\u6700\u901f\u30fb\u78ba\u5b9f\u3011\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u653b\u7565\u300c\u6c38\u7530\u753aPython\u30df\u30cb\u30ad\u30e3\u30f3\u30d7\u300d\u30105\u65e5\u9593\u30675\u4e07\u5186\u3011&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/event\/nagatacho_camp\/embed\/#?secret=K4KikiautY#?secret=wynIbgtEcJ\" data-secret=\"wynIbgtEcJ\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\uff1c\u67081\u958b\u50ac\uff1e\u653e\u9001\u4f5c\u5bb6\u306b\u3088\u308b\u6620\u50cf\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u990a\u6210\u8b1b\u5ea7<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"xwwhV9iTVR\"><a href=\"https:\/\/techgym.jp\/event\/video_director\/\">\u73fe\u5f79\u653e\u9001\u4f5c\u5bb6\u304c\u6559\u3048\u308b\u52d5\u753b\u8b1b\u5ea7\uff01\u300e\uff24\uff2f\uff27\uff21\u300f<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u73fe\u5f79\u653e\u9001\u4f5c\u5bb6\u304c\u6559\u3048\u308b\u52d5\u753b\u8b1b\u5ea7\uff01\u300e\uff24\uff2f\uff27\uff21\u300f&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/event\/video_director\/embed\/#?secret=LkJk0n1xTx#?secret=xwwhV9iTVR\" data-secret=\"xwwhV9iTVR\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\uff1c\u30aa\u30f3\u30e9\u30a4\u30f3\u7121\u6599\uff1e\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bPython\u7206\u901f\u8b1b\u5ea7<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"rBM0QR10Dv\"><a href=\"https:\/\/techgym.jp\/tokyo_python\/\">\u3010\u7121\u6599\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u3011\u30bc\u30ed\u304b\u3089\u306f\u3058\u3081\u308bPython\u7206\u901f\u8b1b\u5ea7<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u3010\u7121\u6599\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u3011\u30bc\u30ed\u304b\u3089\u306f\u3058\u3081\u308bPython\u7206\u901f\u8b1b\u5ea7&#8221; &#8212; \u3010\u30c6\u30c3\u30af\u30b8\u30e0\u3011\u683c\u5b89\u30fb\u5bfe\u9762\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techgym.jp\/tokyo_python\/embed\/#?secret=tz4dBrqASR#?secret=rBM0QR10Dv\" data-secret=\"rBM0QR10Dv\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><style>\n.ranking-table {\n    width: 100%;\n    border-collapse: collapse;\n    margin: 20px 0;\n}\n.ranking-table td {\n    padding: 20px;\n    border: 1px solid #e0e0e0;\n    vertical-align: top;\n}\n.ranking-table td:first-child {\n    width: 200px;\n    text-align: center;\n    background-color: #f9f9f9;\n}\n.ranking-table img {\n    display: block;\n    margin: 10px auto;\n    max-width: 100%;\n    height: auto;\n}\n.ranking-table a {\n    color: #0066cc;\n    text-decoration: none;\n    font-weight: bold;\n}\n.ranking-table a:hover {\n    text-decoration: underline;\n}\n<\/style><\/p>\n<table class=\"ranking-table\">\n<tbody>\n<tr>\n<td><a href=\"\/\/af.moshimo.com\/af\/c\/click?a_id=5161740&amp;p_id=6820&amp;pc_id=19517&amp;pl_id=90728\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\" attributionsrc=\"\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/image.moshimo.com\/af-img\/6634\/000000090728.png?resize=120%2C60\" width=\"120\" height=\"60\" style=\"border: none;\" \/><\/a><img decoding=\"async\" src=\"\/\/i.moshimo.com\/af\/i\/impression?a_id=5161740&amp;p_id=6820&amp;pc_id=19517&amp;pl_id=90728\" width=\"1\" height=\"1\" style=\"border: none;\" loading=\"lazy\" \/><strong><a href=\"http:\/\/msm.to\/2ULVG5u\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9<\/a><\/strong><\/td>\n<td>\n<p><strong>20\u4e07\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u304b\u3089\u3001\u526f\u696d\u306b\u6700\u9069\u306a\u30ea\u30e2\u30fc\u30c8\u30fb\u90313\u301c\u306e\u6848\u4ef6\u3092\u4e00\u62ec\u691c\u7d22\u3067\u304d\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3002<\/strong><strong>\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u767b\u9332\u3067AI\u30b9\u30ab\u30a6\u30c8\u304c\u81ea\u52d5\u7684\u306b\u30de\u30c3\u30c1\u30f3\u30b0\u6848\u4ef6\u3092\u63d0\u6848\u3002<\/strong><strong>\u5e02\u5834\u7d71\u8a08\u3084\u5358\u4fa1\u76f8\u5834\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u53e3\u30b3\u30df\u3082\u7121\u6599\u3067\u95b2\u89a7\u53ef\u80fd\u306a\u305f\u3081\u3001\u672c\u696d\u3092\u7d9a\u3051\u306a\u304c\u3089\u52b9\u7387\u7684\u306b\u9ad8\u5358\u4fa1\u306e\u526f\u696d\u6848\u4ef6\u3092\u63a2\u305b\u307e\u3059\u3002<a href=\"http:\/\/msm.to\/2ULVG5u\" target=\"_blank\" rel=\"noopener\">\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9<\/a><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+61C2P\" rel=\"nofollow\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"120\" height=\"60\" alt=\"\" src=\"https:\/\/www29.a8.net\/svt\/bgt?aid=250928846375&amp;wid=001&amp;eno=01&amp;mid=s00000018714001014000&amp;mc=1\" \/><\/a> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www14.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" \/> <strong><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+5YJRM\" target=\"_blank\" rel=\"noopener\">IT\u30d7\u30ed\u30d1\u30fc\u30c8\u30ca\u30fc\u30ba<\/a><\/strong><\/td>\n<td>\n<p><strong>\u90312\u301c3\u65e5\u304b\u3089\u50cd\u3051\u308b\u67d4\u8edf\u306a\u6848\u4ef6\u304c\u696d\u754c\u30c8\u30c3\u30d7\u30af\u30e9\u30b9\u306e\u8c4a\u5bcc\u3055\u3092\u8a87\u308b\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3002<\/strong><strong>\u30a8\u30f3\u30c9\u76f4\u5951\u7d04\u306e\u305f\u3081\u9ad8\u5358\u4fa1\u3067\u3001\u90313\u65e5\u7a3c\u50cd\u3067\u3082\u5341\u5206\u306a\u5831\u916c\u3092\u5f97\u3089\u308c\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u3084\u6642\u9593\u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u306a\u6848\u4ef6\u3082\u591a\u6570\u3002\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30fb\u30d9\u30f3\u30c1\u30e3\u30fc\u4e2d\u5fc3\u3067\u3001\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u3092\u4f7f\u3063\u305f\u9b45\u529b\u7684\u306a\u6848\u4ef6\u304c\u63c3\u3063\u3066\u3044\u307e\u3059\u3002\u5c02\u5c5e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u6848\u4ef6\u7d39\u4ecb\u304b\u3089\u5951\u7d04\u4ea4\u6e09\u307e\u3067\u30b5\u30dd\u30fc\u30c8\u3002\u5229\u7528\u4f01\u696d2,000\u793e\u4ee5\u4e0a\u306e\u5b9f\u7e3e\u3002<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45E9XQ+679KMQ+40EC+5YJRM\" target=\"_blank\" rel=\"noopener\">IT\u30d7\u30ed\u30d1\u30fc\u30c8\u30ca\u30fc\u30ba<\/a><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BYLJL\" rel=\"nofollow\"> <img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"100\" height=\"60\" alt=\"\" src=\"https:\/\/www21.a8.net\/svt\/bgt?aid=251019989646&amp;wid=001&amp;eno=01&amp;mid=s00000017868002009000&amp;mc=1\" \/><\/a> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www16.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" \/> <strong> <a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BWVTE\" target=\"_blank\" rel=\"noopener\">Midworks<\/a> <\/strong><\/td>\n<td><strong>10,000\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u3092\u4fdd\u6709\u3057\u3001\u90313\u65e5\u301c\u30fb\u30d5\u30eb\u30ea\u30e2\u30fc\u30c8\u306a\u3069\u67d4\u8edf\u306a\u50cd\u304d\u65b9\u306b\u5bfe\u5fdc\u3002\u9ad8\u5358\u4fa1\u6848\u4ef6\u304c\u8c4a\u5bcc\u3067\u3001\u5831\u916c\u4fdd\u969c\u5236\u5ea6\uff0860%\uff09\u3084\u4fdd\u967a\u6599\u8ca0\u62c5\uff0850%\uff09\u306a\u3069\u6b63\u793e\u54e1\u4e26\u307f\u306e\u624b\u539a\u3044\u798f\u5229\u539a\u751f\u304c\u7279\u5fb4\u3002\u901a\u52e4\u4ea4\u901a\u8cbb\uff08\u67083\u4e07\u5186\uff09\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u8cbb\u7528\uff08\u67081\u4e07\u5186\uff09\u306e\u652f\u7d66\u306b\u52a0\u3048\u3001\u30ea\u30ed\u30af\u30e9\u30d6\u30fbfreee\u304c\u7121\u6599\u5229\u7528\u53ef\u80fd\u3002\u975e\u516c\u958b\u6848\u4ef680%\u4ee5\u4e0a\u3001\u652f\u6255\u3044\u30b5\u30a4\u30c820\u65e5\u3067\u5b89\u5fc3\u3057\u3066\u7a3c\u50cd\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=45G89H+AOM1KI+3TVC+BWVTE\" target=\"_blank\" rel=\"noopener\">Midworks<\/a><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30dc\u30fc\u30c9 20\u4e07\u4ef6\u4ee5\u4e0a\u306e\u6848\u4ef6\u304b\u3089\u3001\u526f\u696d\u306b\u6700\u9069\u306a\u30ea\u30e2\u30fc\u30c8\u30fb\u90313\u301c\u306e\u6848\u4ef6\u3092\u4e00\u62ec\u691c\u7d22\u3067\u304d\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3002\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u767b\u9332\u3067AI\u30b9\u30ab\u30a6\u30c8\u304c\u81ea\u52d5\u7684\u306b\u30de\u30c3\u30c1\u30f3\u30b0\u6848\u4ef6\u3092\u63d0\u6848\u3002\u5e02\u5834\u7d71\u8a08\u3084\u5358\u4fa1\u76f8\u5834\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u53e3\u30b3\u30df\u3082\u7121\u6599 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":42501,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-43741","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column"],"views":120,"jetpack_featured_media_url":"\/wp-content\/uploads\/2025\/07\/f3403acf5c65aedec0dba821c4c26404.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts\/43741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/comments?post=43741"}],"version-history":[{"count":0,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/posts\/43741\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/media\/42501"}],"wp:attachment":[{"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/media?parent=43741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/categories?post=43741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techgym.jp\/wp-json\/wp\/v2\/tags?post=43741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}