{"id":226,"date":"2019-05-20T09:43:49","date_gmt":"2019-05-20T00:43:49","guid":{"rendered":"https:\/\/blog.hgrs.me\/?p=226"},"modified":"2019-05-20T13:30:14","modified_gmt":"2019-05-20T04:30:14","slug":"pip%e3%81%a7%e9%96%8b%e7%99%ba%e4%b8%ad%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.hgrs.me\/archives\/226.html","title":{"rendered":"pip\u3067\u958b\u767a\u4e2d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"

\u306f\u3058\u3081\u306b<\/h2>\n

Python\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3068\u3044\u3048\u3070pip<\/a>\u3067\u3059\u304c\u3001\u81ea\u5206\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u6642\u306e\u65b9\u6cd5\u3067\u3059\u3002\u7279\u306b\u958b\u767a\u9014\u4e2d\u3067\u7de8\u96c6\u3082\u3059\u308b\u3068\u3044\u3063\u305f\u72b6\u6cc1\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u30b3\u30de\u30f3\u30c9<\/h2>\n

\u666e\u901a\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5834\u5408<\/h3>\n

\u666e\u901a\u3001pip\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306fpip install <requirement specifier><\/code>\u3068\u3057\u307e\u3059\u3002<\/p>\n

\u4f8b\u3048\u3070fonttools<\/code>\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5165\u308c\u305f\u3044\u3068\u304d\u306f<\/p>\n

$ pip install fonttools<\/code><\/pre>\n

\u3068\u3057\u307e\u3059\u3002<\/p>\n

\u958b\u767a\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n

\u624b\u5143\u306b\u3042\u308b\u3059\u3067\u306b\u5b8c\u6210\u3057\u305f\u958b\u767a\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308c\u3070\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

$ cd \/path\/to\/your\/library\n$ pip install .<\/code><\/pre>\n

\u3061\u306a\u307f\u306bGit\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u3082\u306e\u306f\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n

$ pip install git+https:\/\/example.com\/path\/to\/your\/repo.git<\/code><\/pre>\n

\u3057\u304b\u3057\u3001\u3053\u306e\u65b9\u6cd5\u3067\u306f\u958b\u767a\u4e2d\u3067\u9010\u6b21\u7de8\u96c6\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306b\u5411\u3044\u3066\u3044\u307e\u305b\u3093\u3002\u306a\u306e\u3067\u7de8\u96c6\u53ef\u80fd\u306a\u72b6\u614b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n

\u7de8\u96c6\u53ef\u80fd\u306a\u72b6\u614b\u3067\u958b\u767a\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n

\u7de8\u96c6\u53ef\u80fd\u306a\u72b6\u614b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f-e, --editable<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d8\u30eb\u30d7\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n

\n

-e, –editable <path\/url> Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url.<\/p>\n<\/blockquote>\n

\u305f\u3060\u300csetuptools\u3067\u8a00\u3046\u300e\u958b\u767a\u30e2\u30fc\u30c9\u300f\u306e\u7de8\u96c6\u53ef\u80fd\u30e2\u30fc\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u300d\u3068\u66f8\u3044\u3066\u3042\u308b\u3060\u3051\u3067\u3059\u306d\u3002<\/p>\n

\u66f8\u3044\u3066\u3042\u308b\u901a\u308a\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u5b9f\u884c\u3059\u308c\u3070\u7de8\u96c6\u53ef\u80fd\u30e2\u30fc\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n

$ cd \/path\/to\/your\/library\n$ pip install -e .<\/code><\/pre>\n

\u3059\u3093\u306a\u308a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u306e\u3067\u3001\u4e00\u898b\u3059\u308b\u3068\u3069\u3053\u3089\u3078\u3093\u304c\u7de8\u96c6\u53ef\u80fd\u30e2\u30fc\u30c9\u306a\u306e\u304b\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n

\u4e2d\u3067\u4f55\u304c\u8d77\u3053\u3063\u3066\u3044\u308b\u306e\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n

\u7de8\u96c6\u53ef\u80fd\u30e2\u30fc\u30c9\u306e\u8a73\u7d30<\/h2>\n

\u901a\u5e38pip\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5b9f\u4f53\u306fsite-packages\u5185\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n

\u3057\u304b\u3057\u3001\u7de8\u96c6\u53ef\u80fd\u30e2\u30fc\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u5b9f\u4f53\u304c\u3053\u306esite-packages\u306b\u3042\u308a\u307e\u305b\u3093\u3002site-packages\u306b\u8ffd\u52a0\u3055\u308c\u308b\u306e\u306f<\/p>\n

    \n
  • easy-install.pth<\/li>\n
  • hogehoge.egg-link<\/li>\n<\/ul>\n

    \u306e2\u3064\u3067\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u4e2d\u8eab\u3092\u898b\u308b\u3068\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3078\u306e\u30d1\u30b9\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u958b\u767a\u4e2d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u305d\u306e\u307e\u307e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3068\u3057\u3066\u8aad\u307f\u8fbc\u3093\u3067\u304f\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u3002\u306a\u306e\u3067\u3001\u958b\u767a\u4e2d\u3068\u540c\u69d8\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u66f4\u65b0\u3059\u308c\u3070\u3001\u6700\u65b0\u7248\u3092Python\u306e\u30b3\u30fc\u30c9\u5185\u3067\u666e\u901a\u306bimport<\/code>\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n

    \u3053\u306e\u3088\u3046\u306b\u624b\u5143\u306b\u3042\u308b\u307e\u307e\u7de8\u96c6\/\u66f4\u65b0\u304c\u884c\u3048\u308b\u306e\u3067\u3001\u300c\u7de8\u96c6\u53ef\u80fd\u30e2\u30fc\u30c9\u300d\u3068\u8a00\u3044\u307e\u3059\u3002<\/p>\n

    \u304a\u308f\u308a\u306b<\/h2>\n

    \u3053\u306e\u65b9\u6cd5\u3060\u3068\u958b\u767a\u4e2d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u624b\u8efd\u306b\u66f4\u65b0\u3067\u304d\u308b\u306e\u3067\u3001\u4fbf\u5229\u3067\u826f\u3044\u3067\u3059\u306d\u3002<\/p>\n

    \u81ea\u4f5c\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u306f\u307b\u3068\u3093\u3069\u7121\u3044\u306e\u3067\u3059\u304c\u3001\u4f7f\u3046\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u697d\u306b\u958b\u767a\u304c\u884c\u3048\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u306f\u3058\u3081\u306b Python\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3068\u3044\u3048\u3070pip\u3067\u3059\u304c\u3001\u81ea\u5206\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092pip\u3067\u30a4…<\/p>\n","protected":false},"author":1,"featured_media":227,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[14],"_links":{"self":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/226"}],"collection":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":3,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":250,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/226\/revisions\/250"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media\/227"}],"wp:attachment":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}