{"id":445,"date":"2024-11-17T20:47:06","date_gmt":"2024-11-17T11:47:06","guid":{"rendered":"https:\/\/www.flumen-jp.com\/wordpress\/?p=445"},"modified":"2026-04-16T17:33:29","modified_gmt":"2026-04-16T08:33:29","slug":"python3_13","status":"publish","type":"post","link":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/2024\/11\/17\/python3_13\/","title":{"rendered":"Python 3.13 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"\n<p>\u20032021 \u5e74\u306b\u30b9\u30bf\u30fc\u30c8\u3057\u305f Faster CPython Project \u3068\u3044\u3046\u306e\u304c\u3042\u3063\u3066\u300c\u6bce\u5e74 1 \u56de\u3001\u8a08 4 \u56de\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u3063\u3066 CPython\uff08C \u8a00\u8a9e\u3067\u5b9f\u88c5\u3055\u308c\u305f Python\uff09\u306e\u51e6\u7406\u901f\u5ea6\u3092 5 \u500d\u9ad8\u901f\u5316\u3059\u308b\u300d\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u2003\u3068\u3044\u3046\u8a33\u3067\u672c\u65e5\u300110 \u6708 7 \u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u305f Python 3.13 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u5b9f\u969b\u3001<a href=\"https:\/\/en.lewoniewski.info\/2024\/python-3-12-vs-python-3-13-performance-testing\/\">\u3053\u306e\u8a18\u4e8b<\/a>\u306b\u3088\u308c\u3070 3.12 \u7248\u304b\u3089 5\uff05\uff5e 8\uff05 \u306e\u30b9\u30d4\u30fc\u30c8\u30a2\u30c3\u30d7\u304c\u5b9f\u73fe\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u2003\u4ee5\u4e0b\u3001\u305d\u306e\u624b\u9806\u3092\u8a18\u3057\u307e\u3059\u3002\u8457\u8005\u306f\u81ea\u4e3b\u7684\u306b\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7ba1\u7406\u3057\u305f\u3044 pip \u6d3e\u306a\u306e\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3001anaconda \u6d3e\u306e\u65b9\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u2003\u5148\u305a\u306f\u4eca\u4f7f\u3063\u3066\u3044\u308b\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7d99\u627f\u3057\u305f\u3044\u306e\u3067 <\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cd %LOCALAPPDATA%\/Programs\/Python\npy -m pip freeze &gt; requirements.txt<\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br>\u3000\u6b21\u3044\u3067\u3001\u672c\u5bb6\u304b\u3089\u6700\u65b0\u7248\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u5168\u3066\u65e2\u5b9a\u306e\u8a2d\u5b9a\u3067 <code>%LOCALAPPDATA%\/Programs\/Python<\/code> \u306b\u65b0\u7248\uff08\u4eca\u56de\u306f Python13\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br>\u3000\u3055\u3089\u306b\u3001\u65b0\u7248\u306b\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>py -m pip install -r [path to requirements.txt]\\requirements.txt<\/code><\/pre><\/div>\n\n\n\n<p>\u2003\u4ee5\u4e0a\u3067\u3059\u3002\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6570\u306b\u3088\u308a\u307e\u3059\u304c\u6240\u8981\u6642\u9593\u306f 10 \u5206\u7a0b\u5ea6\u3067\u3057\u3087\u3046\u304b\u3002<br>\u3000\u8349\u30d7\u30ed\u30b0\u30e9\u30de\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u4f9d\u5b58\u3059\u308b\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306f\u5148\u305a\u66f8\u3051\u306a\u3044\u306e\u3067\u65e7\u7248\u306f\u300c\u30a2\u30d7\u30ea\u3068\u6a5f\u80fd\u300d\u3067\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u5dee\u652f\u3048\u3042\u308a\u307e\u305b\u3093\uff08\u30ec\u30b8\u30b9\u30c8\u30ea\u306e\u7d61\u307f\u3067\u30c0\u30a4\u30ec\u30af\u30c8\u306b  <code>%LOCALAPPDATA%\/Programs\/Python<\/code>\/&lt;<em>oldversion<\/em>&gt; \u3092\u524a\u9664\u3057\u3066\u306f\u30c0\u30e1 \uff09\u3002<\/p>\n\n\n\n<p>\u2003\u4ee5\u4e0b\u306f\u4f59\u8ac7\u3002<\/p>\n\n\n\n<p>\u2003pip \u3082\u542b\u3081\u3066\u3001\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u306f <a href=\"https:\/\/pypi.org\/project\/pip-review\/\">pip-review<\/a> \u3067\u5b9a\u671f\u7684\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>pip-review --auto<\/code><\/pre><\/div>\n\n\n\n<p>\u2003\uff08MinGW \u306e Python \u3068\u30d0\u30c3\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u306e\u3067 \uff09Python \u306e\u305f\u3081\u306e PATH \u74b0\u5883\u5909\u6570\u306f\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u30e9\u30f3\u30c1\u30e3\u30fc py \u306b\u4efb\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>: foo.bat\n\npy foo.py %*<\/code><\/pre><\/div>\n\n\n\n<p>\u2003\u4e00\u65b9\u3001gdal \u306e\u3088\u3046\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u4f9d\u5b58\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u6642\u306f\u30ad\u30c3\u30c1\u30ea\u4ee5\u4e0b\u306e\u3088\u3046\u306b PATH \u74b0\u5883\u5909\u6570\u4ed6\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>: bar.bat\n\n@echo off\nsetlocal\n\nset OSGEO4W_ROOT=C:\\OSGEO4W\nset PATH=%OSGEO4W_ROOT%\\bin;%PATH%\nset PYTHONHOME=%OSGEO4W_ROOT%\\apps\\Python313\ncall %OSGEO4W_ROOT%\\etc\\ini\\gdal.bat\ncall %OSGEO4W_ROOT%\\etc\\ini\\python3.bat\n\npython bar.py %*<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u20032021 \u5e74\u306b\u30b9\u30bf\u30fc\u30c8\u3057\u305f Faster CPython Project \u3068\u3044\u3046\u306e\u304c\u3042\u3063\u3066\u300c\u6bce\u5e74 1 \u56de\u3001\u8a08 4 \u56de\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u3063\u3066 CPython\uff08C \u8a00\u8a9e\u3067\u5b9f\u88c5\u3055\u308c\u305f Python\uff09\u306e\u51e6\u7406\u901f\u5ea6\u3092 5 \u500d\u9ad8\u901f\u5316 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[19],"class_list":["post-445","post","type-post","status-publish","format-standard","hentry","category-it","tag-python"],"_links":{"self":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=445"}],"version-history":[{"count":8,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/445\/revisions"}],"predecessor-version":[{"id":460,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/445\/revisions\/460"}],"wp:attachment":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}