{"id":256,"date":"2025-03-28T21:21:21","date_gmt":"2025-03-28T12:21:21","guid":{"rendered":"https:\/\/yowamon3.com\/?p=256"},"modified":"2025-03-28T21:21:21","modified_gmt":"2025-03-28T12:21:21","slug":"python%e3%81%aepip","status":"publish","type":"post","link":"https:\/\/yowamon3.com\/?p=256","title":{"rendered":"Python\u306epip"},"content":{"rendered":"\n<h2 class=\"wp-block-heading jinr-heading d--bold\">pip\u3068\u306f<\/h2>\n\n\n\n<p>pip\u306fPython\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3067\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u3001\u30d1\u30a4\u30bd\u30f3\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u308a\u3057\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading jinr-heading d--bold\">pip\u306e\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p>pip\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u307e\u3059\u3002\u9593\u9055\u3063\u3066\u3001\u7aef\u672b\u306b\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3044\u3088\u3046\u306b\u4eee\u60f3\u74b0\u5883\u3092\u6709\u52b9\u5316\u3057\u305f\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading jinr-heading d--bold\">pip\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/h3>\n\n\n\n<p>pip\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3042\u307e\u308a\u4f7f\u3046\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001pip\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u5834\u5408\u306f\u8b66\u544a\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u8b66\u544a\u304c\u51fa\u3066\u304d\u305f\u3089\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>python -m pip install --upgrade pip<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading jinr-heading d--bold\">\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u306a\u3044\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u6307\u5b9a\u3092\u7701\u7565\u3057\u305f\u5834\u5408\u306f\u6700\u65b0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading jinr-heading d--bold\">\u666e\u901a\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip install \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading jinr-heading d--bold\">\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip install \u30d1\u30c3\u30b1\u30fc\u30b8\u540d==\u30d0\u30fc\u30b8\u30e7\u30f3<\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading jinr-heading d--bold\">\u6700\u5c0f\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip install &#39;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;=\u30d0\u30fc\u30b8\u30e7\u30f3&#39;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading jinr-heading d--bold\">\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>\u958b\u767a\u3057\u3066\u3044\u3066\u4e0d\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u51fa\u3066\u304d\u305f\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip uninstall \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading jinr-heading d--bold\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4eca\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip list<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading jinr-heading d--bold\">requirements.txt\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p>python\u3092\u958b\u767a\u3057\u3066\u3044\u3066\u3001\u4ed6\u306e\u74b0\u5883\u3067\u3082\u958b\u767a\u3057\u305f\u3044\u3001\u3042\u308b\u3044\u306f\u5225\u306e\u74b0\u5883\u3067\u5b9f\u884c\u3057\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u6642\u306b\u3001\u4eca\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3059\u3079\u3066\u5165\u529b\u3059\u308b\u306e\u306f\u5927\u5909\u306a\u624b\u9593\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u73fe\u5728\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u62ec\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u8981\u4ef6\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip freeze &gt; requirements.txt<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading jinr-heading d--bold\">requirements.txt\u3092\u5229\u7528\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>\u4f5c\u6210\u3057\u305f\u8981\u4ef6\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u3057\u3066\u4e00\u62ec\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u304c\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip install -r requirements.txt<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading jinr-heading d--bold\">constraints.txt\u3092\u5229\u7528\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>constrains\u3092\u5229\u7528\u3059\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3059\u308b\u306e\u306f\u8907\u6570\u4eba\u3067\u958b\u767a\u3057\u3066\u3044\u305f\u308a\u3001\u4ed6\u306e\u4eba\u306bpython\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u516c\u958b\u3057\u3066\u5b9f\u884c\u3057\u3066\u3082\u3089\u3046\u6642\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip install -r requirements.txt -c constraints.txt<\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092requirements.txt\u3067\u6307\u5b9a\u3057\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092constraints.txt\u3067\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading jinr-heading d--bold\">\u3055\u3044\u3054\u306b<\/h2>\n\n\n\n<p>pip\u306flinux\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u3088\u3046\u306b\u5916\u90e8\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6628\u4eca\u306f\u4eee\u60f3\u74b0\u5883\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u7ba1\u7406\u3067\u304d\u308b\u30c4\u30fc\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u6a19\u6e96\u306epip\u306f\u5f71\u304c\u8584\u304f\u306a\u3063\u3066\u304d\u3066\u3044\u308b\u6c17\u304c\u3057\u307e\u3059\u3002<br>\u3068\u306f\u3044\u3048\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u3001\u624b\u8efd\u306b\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u305f\u308a\u3001\u5b9f\u9a13\u7684\u306b\u30bd\u30fc\u30b9\u3092\u52d5\u304b\u3059\u969b\u306b\u306f\u307e\u3060\u307e\u3060\u6709\u7528\u5316\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>pip\u3068\u306f pip\u306fPython\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3067\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u3001\u30d1\u30a4\u30bd\u30f3\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u308a\u3057\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 pip\u306e\u4f7f\u3044\u65b9 pip\u306f\u30d1\u30c3\u30b1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jinr_url_youtube":"","_jinr_pip_youtube":false,"_jinr_time_youtube":"","_jinr_thumb_youtube":"","_jinr_media_youtube":"","_jinr_category_edit":false,"_jinr_category":"","_jinr_title_display":false,"_jinr_snsbutton_display":false,"_jinr_ads_display":false,"_jinr_thumbnail_display":false,"_jinr_profile_display":false,"_jinr_representations_display":false,"_jinr_relatedpost_display":false,"_jinr_sidebar1col_display":false,"_jinr_sidebar2col_display":false,"_jinr_seotitle_display":"","_jinr_description_display":"","_jinr_keyword_display":"","_jinr_hastag_display":"","_jinr_canonical_display":"","_jinr_noindex_display":false,"_jinr_paidpost":false,"_jinr_paidpost_product_id":"","_jinr_headtag_article":"","footnotes":""},"categories":[50],"tags":[48,55],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-python","tag-python","tag-55"],"views":"0","_links":{"self":[{"href":"https:\/\/yowamon3.com\/index.php?rest_route=\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yowamon3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yowamon3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yowamon3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yowamon3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256"}],"version-history":[{"count":1,"href":"https:\/\/yowamon3.com\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions"}],"predecessor-version":[{"id":257,"href":"https:\/\/yowamon3.com\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions\/257"}],"wp:attachment":[{"href":"https:\/\/yowamon3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yowamon3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yowamon3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}