{"id":257,"date":"2024-03-08T23:12:21","date_gmt":"2024-03-08T14:12:21","guid":{"rendered":"https:\/\/txn.myds.me\/blog\/?p=257"},"modified":"2024-03-08T23:12:21","modified_gmt":"2024-03-08T14:12:21","slug":"linux-mint-21-3-virginia-%e3%81%ae-pipenv-%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc-python-%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"https:\/\/blog.txn.red\/?p=257","title":{"rendered":"Linux Mint 21.3 Virginia \u306e pipenv \u3067\u30a8\u30e9\u30fc + Python \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">python \u306e\u958b\u767a\u74b0\u5883\u306f pipenv \u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001Linux Mint \u306e\u6a19\u6e96\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5165\u3063\u3066\u3044\u308b pipenv \u3060\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u52d5\u304b\u306a\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5165\u3063\u3066\u3044\u308b Python \u306f 3.10 \u3002\u30cd\u30c3\u30c8\u3092\u691c\u7d22\u3057\u3066\u307f\u308b\u3068 pipenv \u304c\u53e4\u3044\u3068\u304b\u306a\u3093\u3068\u304b\u3002\u3002\u3002\u4e00\u65e6\u6d88\u3057\u3066 pip \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3059\u306e\u304c\u3044\u3044\u3089\u3057\u3044\u306e\u3067\u3084\u3063\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo apt install pipenv-\n\n# python3 \u3057\u304b\u306f\u3044\u3063\u3066\u3044\u306a\u3044\u306e\u3067 pip3 \u3068\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044 pip \u3067 OK\n$ pip install pipenv<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3067\u89e3\u6c7a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3064\u3044\u3067\u306b Python \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3002pyenv \u3067\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f update-alternatives \u306b\u3057\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3053\u306e\u8fba\u306e\u30c4\u30fc\u30eb\u306e\u79fb\u308a\u5909\u308f\u308a\u65e9\u3044\u306e\u3067\u5ec3\u308c\u308b\u3068\u308f\u308a\u3068\u653e\u7f6e\u3055\u308c\u304c\u3061\u3001\u3061\u3087\u3063\u3068\u6642\u9593\u7d4c\u3064\u3068\u9762\u5012\u306a\u3053\u3068\u306b\u306a\u308b\u5370\u8c61\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">update-alternatives  \u306a\u3089 Ubuntu \u7cfb\u306e OS \u3067\u306f\u4ed6\u306e\u30b3\u30de\u30f3\u30c9\u5207\u308a\u66ff\u3048\u308b\u305f\u3081\u306b\u3082\u4f7f\u308f\u308c\u3066\u3044\u308b\u3063\u307d\u3044\u306e\u3067\u3060\u3044\u3058\u3087\u3076\u305d\u3046\u3058\u3083\u306a\u3044\u304b\u3068\u3002\u3002\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code># \u672b\u5c3e\u304c\u512a\u5148\u5ea6\u3067\u591a\u304d\u3044\u65b9\u304c\u512a\u5148\u3089\u3057\u3044\n$ sudo update-alternatives --install \/usr\/bin\/python python3 \/usr\/bin\/python3.10 110\n$ sudo update-alternatives --install \/usr\/bin\/python python3 \/usr\/bin\/python3.11 100\n\n# \u30ea\u30b9\u30c8\u304c\u51fa\u3066\u304f\u308b\u306e\u3067 [selection] \u306e\u6570\u5b57\u3092\u9078\u3076\u3068\u5207\u308a\u66ff\u308f\u308b\n$ sudo update-alternatives --config python<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%25e5%258f%2582%25e8%2580%2583\">\u53c2\u8003<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/qiita.com\/murakami77\/items\/b612734ff209cbb22afb\">Ubuntu 22.04\u306bPython3.x\u3092\u8907\u6570\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\uff08PPA\u30fbapt\uff09 #Python &#8211; Qiita<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>python \u306e\u958b\u767a\u74b0\u5883\u306f pipenv \u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001Linux Mint \u306e\u6a19\u6e96\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5165\u3063\u3066\u3044\u308b pipenv \u3060\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u52d5\u304b\u306a\u3044\u3002 \u5165\u3063\u3066\u3044\u308b Python \u306f 3.10 \u3002\u30cd\u30c3\u30c8\u3092\u691c\u7d22\u3057\u3066\u307f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1,"footnotes":""},"categories":[5],"tags":[8,14],"class_list":["post-257","post","type-post","status-publish","format-standard","hentry","category-it","tag-linux","tag-python"],"_links":{"self":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts\/257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=257"}],"version-history":[{"count":0,"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}