{"id":58,"date":"2022-09-14T08:27:00","date_gmt":"2022-09-14T08:27:00","guid":{"rendered":"https:\/\/gnose.cln4.net\/?p=58"},"modified":"2022-09-14T08:27:02","modified_gmt":"2022-09-14T08:27:02","slug":"core-xpython%e3%81%ae%e7%8a%b6%e6%85%8b","status":"publish","type":"post","link":"https:\/\/gnose.cln4.net\/?p=58","title":{"rendered":"[Core-X]python\u306e\u72b6\u614b"},"content":{"rendered":"\n<p>\u4f5c\u696d\u30e1\u30e2<\/p>\n\n\n\n<p>core-x \u306b\u304a\u3044\u3066python\u306e\u4eee\u60f3\u74b0\u5883\u3092(venv)\u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3002<br>\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u5931\u6557\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python -m venv venv\nError: Command '&#91;'\/home\/cvcln4\/work\/python\/test01\/venv\/bin\/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u81ea\u4f53\u306f &#8211;without-pip \u3067\u89e3\u6d88\u51fa\u6765\u308b\u304c\u3001\u305d\u3082\u305d\u3082pip\u4f7f\u3048\u306a\u3044\u306e\uff1f<br>\u3084\u308a\u305f\u3044\u3053\u3068\u3068\u3057\u3066\u3001\u305d\u3053\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u3066\u3044\u308b\u305f\u3081\u3001\u3061\u3068\u4e0d\u4fbf<\/p>\n\n\n\n<p>\u305d\u3082\u305d\u3082pip\u81ea\u4f53\u304c\u3082\u3068\u3082\u3068\u3042\u308b\u306e\u304b\u78ba\u8a8d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 -version\n-bash: pip3: \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\n\npython --version\nPython 3.6.8\n<\/code><\/pre>\n\n\n\n<p>\u3042\u308c\uff1fPython\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u3061\u3087\u3063\u3068\u53e4\u3044\uff1f<br>\u53e4\u304f\u3066\u3082\u305d\u3093\u306a\u306b\u56f0\u308b\u3053\u3068\u306f\u7121\u3044\uff08\u5927\u3057\u305f\u3053\u3068\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u3044\uff09\u304c\u3001\u4e00\u5fdc\u4e0a\u3052\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u826f\u304f\u306a\u3044\u304b\uff1f<br>\u3068\u601d\u3044\u3001python\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u53c2\u7167\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306bconfigure , make \u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u304f\u308b\u3002<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/pythonlinks.python.jp\/ja\/index.html\" target=\"_blank\">\u975e\u516c\u5f0fPython\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30f3\u30af<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>...\n\/home\/****\/work\/module_src\/python_src\/Python-3.8.13\/Modules\/_ctypes\/_ctypes.c:107:10: \u81f4\u547d\u7684\u30a8\u30e9\u30fc: ffi.h: No such file or directory\n #include &lt;ffi.h>\n          ^~~~~~~\n\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u505c\u6b62\u3057\u307e\u3057\u305f\u3002\n\nPython build finished successfully!\nThe necessary bits to build these optional modules were not found:\n_gdbm                 _tkinter              nis                \nTo find the necessary bits, look in setup.py in detect_modules() for the module's name.\n\n\nThe following modules found by detect_modules() in setup.py, have been\nbuilt by the Makefile instead, as configured by the Setup files:\n_abc                  atexit                pwd                \ntime                                                           \n\n\nFailed to build these modules:\n_ctypes                                                        \n\nrunning build_scripts\n\u2026<\/code><\/pre>\n\n\n\n<p>\u3042\u308c\uff1fctypes\u3068\u304b\u3063\u3066mysqlconector\u3068\u304b\u3067\u5fc5\u8981\u306a\u3084\u3064\u3058\u3083\u306a\u304b\u3063\u305f\u3051\uff1f<br>\u3046\u3064\u308d\u306a\u899a\u3048\u3060\u304c\u3001ctypes\u304c\u7121\u304f\u3066\u306a\u3093\u304b\u3044\u308d\u3044\u308d\u5f15\u3063\u304b\u304b\u3063\u305f\u3088\u3046\u306a\u899a\u3048\u304c\u3042\u308b\u304b\u3089\u3001\u7d50\u69cb\u5927\u4e8b\u306a\u3084\u3064\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3048\u308b\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3067\u3001\u3069\u3046\u306b\u304b\u306a\u3089\u306a\u3044\u304b\u3068\u30cd\u30c3\u30c8\u3092\u691c\u7d22\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304c\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001\u4eca\u5ea6\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3046\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/notemite.com\/terminal\/install-libffi-on-sakura-rental\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u3055\u304f\u3089\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b libffi \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u696d\u30e1\u30e2 core-x \u306b\u304a\u3044\u3066python\u306e\u4eee\u60f3\u74b0\u5883\u3092(venv)\u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3002\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u5931\u6557\u3002 \u3053\u306e\u30a8\u30e9\u30fc\u81ea\u4f53\u306f &#8211;without-pip \u3067\u89e3\u6d88\u51fa\u6765\u308b\u304c\u3001\u305d\u3082\u305d\u3082pip\u4f7f\u3048\u306a\u3044\u306e\uff1f\u3084\u308a\u305f\u3044\u3053\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=\/wp\/v2\/posts\/58"}],"collection":[{"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":1,"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":59,"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions\/59"}],"wp:attachment":[{"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gnose.cln4.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}