{"id":4026,"date":"2025-02-17T06:07:43","date_gmt":"2025-02-16T22:07:43","guid":{"rendered":"https:\/\/10ccc.cc\/?p=4026"},"modified":"2026-01-21T12:00:31","modified_gmt":"2026-01-21T04:00:31","slug":"pythonista%e4%b8%8bstash%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b-ios","status":"publish","type":"post","link":"https:\/\/10ccc.cc\/?p=4026","title":{"rendered":"Pythonista \u901a\u8fc7 stash \u5b9e\u73b0 pip \u5b89\u88c5packages"},"content":{"rendered":"<h1 style=\"text-align: center;\"><strong>\u524d\u8a00<\/strong><\/h1>\n<blockquote><p>\u00a0 \u00a0 \u00a0 \u00a0 \u6700\u8fd1\u5728\u5b66\u4e60 PyTorch \uff0c\u7531\u4e8e\u8bfe\u7a0b\u7684\u89c6\u9891\u65f6\u957f\u7740\u5b9e\u60ca\u4eba--&gt;\u00a0 <a href=\"https:\/\/www.youtube.com\/watch?v=V_xro1bcAuA&amp;list=PLRvPY2I0yeAjMg9hz1SAl92j-RmflAxK2&amp;index=3\" target=\"_blank\"  rel=\"nofollow\" >PyTorch for Deep Learning &amp; Machine Learning \u2013 Full Course<\/a> \u5750\u5728\u7535\u8111\u684c\u524d\u4e00\u6574\u5929\uff0c\u5b9e\u5728\u9876\u4e0d\u4f4f\u4e86\u3002\u4e8e\u662f\u60f3\u8981\u5c1d\u8bd5\u7a9d\u5728\u88ab\u7a9d\u91cc\u7528\u624b\u673a\u8fdb\u884c\u5b66\u4e60\u3002<\/p>\n<p>\u7531\u4e8e\u8bfe\u7a0b\u9700\u8981\u7528\u5230 Jupyter Notebook \u548c torch \uff0c \u56e0\u6b64\uff0c\u5c1d\u8bd5\u4e86\u4e0d\u5c11\u7684App\u4e4b\u540e\uff0c\u4e5f\u53d1\u73b0\u4e86\u4e00\u4e9b\u975e\u5e38\u68d2\u7684\u79fb\u52a8\u7aefpython APP\uff0c\u6bd4\u5982 Carnet \u4ee5\u53ca\u672c\u6587\u7684\u4e3b\u89d2 Pythonista \u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5b83\u4eec\u662f\u5b8c\u5168\u4e0d\u540c\u4f46\u5374\u540c\u6837\u4f18\u79c0\u7684\u4ea7\u54c1\u3002 Carnet \u63d0\u4f9b\u4e86\u5b8c\u6574\u7684Jupyter\u8fd0\u884c\u73af\u5883\uff0c\u8fd9\u610f\u5473\u8fd9\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 !command \u6765\u8fd0\u884c pip \u547d\u4ee4\u5b89\u88c5\u9700\u8981\u7684package\u3002\u4f46 Pythonista \u81ea\u8eab\u6ca1\u6709\u63d0\u4f9b\u6b64\u529f\u80fd\u3002\u4f46Pythonista\u81ea\u5e26\u542f\u52a8\u901f\u5ea6\u3001\u4f18\u96c5\u7684\u952e\u76d8\u548c\u4fbf\u6377\u7684\u8f93\u5165\u65b9\u5f0f\u5b9e\u5728\u4ee4\u4eba\u5782\u6d8e\u4e0d\u820d\u3002<\/p>\n<p>\u4e8e\u662f\uff0c\u7ecf\u8fc7\u4e00\u756a\u641c\u7d22\uff0c\u4fbf\u6709\u4e86\u6b64\u6587\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\">\u5e8f\u8a00<\/h1>\n<blockquote><p>\u00a0 \u00a0 \u00a0 \u00a0 \u201c StaSh is a serious attempt to implement a Bash-like shell for Pythonista. \u201d<br \/>\nStaSh\u662f\u4e00\u4e2aPythonista\u73af\u5883\u4e0b\u7684\u4effshell\u7a0b\u5e8f\uff0cSta\u6765\u81ea\u4e8ePythonista\u7684\u540e\u4e09\u4e2a\u5b57\u6bcd\uff0cSh\u5373shell\u7f29\u5199\u3002\u9664\u4e86\u80fd\u5b8c\u6210 shell \u7684\u57fa\u672c\u529f\u80fd\u5916\uff0c\u6700\u4e3b\u8981\u7684\u529f\u80fd\u8fd8\u6709\u5b9e\u73b0 pip \u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\u548cgit \u64cd\u4f5c\u3002<br \/>\n\u66f4\u591a\u8be6\u60c5\u8bf7\u53c2\u7167\u5b98\u65b9<a href=\"https:\/\/github.com\/ywangd\/stash\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\" >GitHub\u4ed3\u5e93<\/a> \u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1>\u4f7f\u7528\u6b65\u9aa4<\/h1>\n<h2>Step 1: \u5728Pythonista\u4e2d\u65b0\u5efa\u4e0b\u8f7d\u5b89\u88c5\u811a\u672c<\/h2>\n<p>\u4f8b\u5982\u6211\u4eec\u5728 pythonista \u4e2d\u65b0\u5efa\u4e86\u4e00\u4e2a install_stash.py \u6587\u4ef6\uff0c\u5728\u5176\u4e2d\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\u5e76\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n<div class=\"dm-code-snippet dark no-background no-background-mobile dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-python\"><\/p>\n<pre class=\"dm-pre-admin-side\">import requests as r;exec(r.get('https:\/\/raw.githubusercontent.com\/ywangd\/stash\/master\/getstash.py').text<\/pre>\n<p><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<figure id=\"attachment_4040\" aria-describedby=\"caption-attachment-4040\" style=\"width: 386px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162093-IMG_9500.png\" alt=\"Pythonista \u901a\u8fc7 stash \u5b9e\u73b0 pip \u5b89\u88c5packages\" title=\"\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4040\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162093-IMG_9500-472x1024.png\" alt=\"get_stash.py\" width=\"386\" height=\"837\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162093-IMG_9500-472x1024.png 472w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162093-IMG_9500-138x300.png 138w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162093-IMG_9500-768x1665.png 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162093-IMG_9500-709x1536.png 709w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162093-IMG_9500-945x2048.png 945w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162093-IMG_9500.png 1179w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/a><figcaption id=\"caption-attachment-4040\" class=\"wp-caption-text\">get_stash.py<\/figcaption><\/figure>\n<p>\u8fd0\u884c\u6b63\u5e38\u7ed3\u675f\u4e4b\u540e\uff0c\u5c31\u8868\u793a\u5b89\u88c5\u5b8c\u6210\u4e86\u3002<\/p>\n<blockquote><p>\u5b89\u88c5\u5b8c\u6210\u540e\u4f1a\u5f97\u5230\u4e00\u4e2a <strong>launch_stash.py <\/strong>\u7684\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u5c31\u662f <strong>stash <\/strong>\u7684\u542f\u52a8\u5668\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u8fd0\u884c\u6309\u94ae\u5373\u53ef\u542f\u52a8 <strong>stash <\/strong>\u3002<\/p>\n<p><strong>\u5982\u679c\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c\uff1a<\/strong><br \/>\n\u5173\u952e\u95ee\u9898\u5728\u4e8e\u65e0\u6cd5\u4f7f\u7528 <strong>get() <\/strong>\u65b9\u6cd5\u83b7\u53d6 <strong>getstash.py <\/strong>\u6587\u4ef6\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u68481<\/strong>\uff1a<br \/>\n\u76f4\u63a5\u590d\u5236\u94fe\u63a5\u5728\u6d4f\u89c8\u5668\u6253\u5f00\uff0c\u7136\u540e\u590d\u5236\u6d4f\u89c8\u5668\u4e2d\u7684\u4ee3\u7801\uff0c\u5e76\u5728<strong> Pythonista <\/strong>\u4e2d\u65b0\u5efa\u4e00\u4e2a<strong>.py <\/strong>\u6587\u4ef6\u7c98\u8d34\u521a\u624d\u7684\u4ee3\u7801\u8fdb\u884c\u8fd0\u884c\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u68482<\/strong>\uff1a<br \/>\n\u5c06\u94fe\u63a5\u66ff\u6362\u4e3a\uff1ahttps:\/\/gitee.com\/mersakk\/stash\/raw\/master\/getstash.py<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2>Step 2: \u8fd0\u884c launch_stash.py<\/h2>\n<p>\u5982\u679c\u662f\u6309\u7167\u4e0a\u8ff0\u6b65\u9aa4\u7684\u8bdd\uff0c\u4f60\u53ef\u4ee5\u5728\u76f8\u540c\u7684\u8def\u5f84\u4e0b\u53d1\u73b0 <strong>launch_stash.py <\/strong>\uff0c\u6211\u4eec\u8fd0\u884c\u5b83\u4e4b\u540e\u4f1a\u51fa\u73b0\u4e00\u4e2ashell\u7a97\u53e3\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u5176\u4e2d\u8fd0\u884c\u5e38\u89c1\u7684\u547d\u4ee4\u5982 ls, cat, pip\u7b49\u547d\u4ee4<\/p>\n<figure id=\"attachment_4038\" aria-describedby=\"caption-attachment-4038\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742161237-IMG_9498-2.png\" alt=\"Pythonista \u901a\u8fc7 stash \u5b9e\u73b0 pip \u5b89\u88c5packages\" title=\"\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4038 size-large\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742161237-IMG_9498-2-1024x740.png\" alt=\"run stash\" width=\"640\" height=\"463\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742161237-IMG_9498-2-1024x740.png 1024w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742161237-IMG_9498-2-300x217.png 300w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742161237-IMG_9498-2-768x555.png 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742161237-IMG_9498-2-1536x1110.png 1536w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742161237-IMG_9498-2-2048x1480.png 2048w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-4038\" class=\"wp-caption-text\">run stash<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>\u5177\u4f53\u53ef\u4ee5\u8fd0\u884c\u54ea\u4e9b\u547d\u4ee4\uff0c\u81ea\u884c\u5c1d\u8bd5\u6216\u5230stash\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684<strong>bin<\/strong>\u6587\u4ef6\u5939\u67e5\u770b:<\/p>\n<div class=\"dm-code-snippet dark no-background no-background-mobile dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-shell\"><\/p>\n<pre class=\"dm-pre-admin-side\">Python Modules\/site-packages(user)\/stash\/bin<\/pre>\n<p><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<p>&nbsp;<\/p>\n<h2><\/h2>\n<h2>Step 3: \u66f4\u65b0stash<\/h2>\n<p>\u5982\u679c\u60f3\u8981\u66f4\u65b0 <strong>stash<\/strong>\uff0c\u53ef\u4ee5\u6309 <strong>step2<\/strong> \u4e2d\u7684\u5f15\u5bfc\uff0c\u5728<strong> stash<\/strong> \u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<div class=\"dm-code-snippet dark no-background no-background-mobile dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-shell\"><\/p>\n<pre class=\"dm-pre-admin-side\">selfupdate -f<\/pre>\n<p><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<p>\u8fd0\u884c\u5b8c\u6bd5\u540e\u91cd\u542f <strong>Pythonista<\/strong>\u5373\u53ef<\/p>\n<p>&nbsp;<\/p>\n<h2>\u540e\u7eed: \u5feb\u901f\u8fdb\u5165stash<\/h2>\n<p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5c06 <strong>launch_stash.py\u00a0<\/strong> \u6dfb\u52a0\u5230<strong> Pythonista<\/strong> \u7684<strong>Share Extension<\/strong>\u4e2d\u5b9e\u73b0\u3002\u6dfb\u52a0\u540e\uff0c\u53ef\u4ee5\u5728\u4efb\u4f55\u6709\u5206\u4eab\u6309\u94ae\u7684\u5730\u65b9\u4f9d\u6b21\u70b9\u51fb <strong>\u5206\u4eab--&gt;Run Pythonista Script--&gt; Stash<\/strong>\u5b9e\u73b0<\/p>\n<figure id=\"attachment_4041\" aria-describedby=\"caption-attachment-4041\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162520-IMG_9507-scaled.jpg\" alt=\"Pythonista \u901a\u8fc7 stash \u5b9e\u73b0 pip \u5b89\u88c5packages\" title=\"\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4041 size-large\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162520-IMG_9507-1024x444.jpg\" alt=\"stash shortcut\" width=\"640\" height=\"278\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162520-IMG_9507-1024x444.jpg 1024w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162520-IMG_9507-300x130.jpg 300w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162520-IMG_9507-768x333.jpg 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162520-IMG_9507-1536x666.jpg 1536w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742162520-IMG_9507-2048x888.jpg 2048w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-4041\" class=\"wp-caption-text\">stash shortcut<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u53c2\u8003: <a href=\"https:\/\/blog.siriyang.cn\/posts\/20191029224207id.html#comments\" target=\"_blank\"  rel=\"nofollow\" >stash\u5b89\u88c5\u6559\u7a0b<\/a><\/p>\n<p>get_stash.py: <a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/03\/1742163920-get_stash.py\">1742163920-get_stash<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u00a0 \u00a0 \u00a0 \u00a0 \u6700\u8fd1\u5728\u5b66\u4e60 PyTorch \uff0c\u7531\u4e8e\u8bfe\u7a0b\u7684\u89c6\u9891\u65f6\u957f\u7740\u5b9e\u60ca\u4eba&#8211;&gt;\u00a0 PyTorch for Deep L &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4659,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[120,123,84,82],"tags":[95,117,119,118],"class_list":["post-4026","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app","category-python","category-funny","category-82","tag-pip","tag-pythonista","tag-shell","tag-stash"],"_links":{"self":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/4026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4026"}],"version-history":[{"count":19,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/4026\/revisions"}],"predecessor-version":[{"id":4815,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/4026\/revisions\/4815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/media\/4659"}],"wp:attachment":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}