{"id":937,"date":"2019-05-01T08:30:25","date_gmt":"2019-04-30T23:30:25","guid":{"rendered":"https:\/\/kesoku-blog.com\/?p=937"},"modified":"2019-06-23T19:50:07","modified_gmt":"2019-06-23T10:50:07","slug":"post-937","status":"publish","type":"post","link":"https:\/\/kesoku-blog.com\/?p=937","title":{"rendered":"\u306a\u305cvenv\u306a\u3069\u306ePython\u306e\u4eee\u60f3\u74b0\u5883\u304c\u5fc5\u8981\u306a\u306e\u304b\uff1f"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"635\" src=\"https:\/\/kesoku-blog.com\/wp-content\/uploads\/2019\/05\/quick.jpg\" alt=\"\" class=\"wp-image-939\" srcset=\"https:\/\/kesoku-blog.com\/wp-content\/uploads\/2019\/05\/quick.jpg 960w, https:\/\/kesoku-blog.com\/wp-content\/uploads\/2019\/05\/quick-300x198.jpg 300w, https:\/\/kesoku-blog.com\/wp-content\/uploads\/2019\/05\/quick-768x508.jpg 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/figure>\n\n\n\n<p>Python\u306f2019\u5e74\u73fe\u5728\u3067\u4e00\u756a\u4eba\u6c17\u306e\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\uff11\u3064\u3067\u3059\u3002\u958b\u767a\u3082\u6d3b\u767a\u306b\u884c\u308f\u308c\u30012008\u5e74\u306bVer3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u304c\u3001Ver2\u3068\u4e92\u63db\u6027\u304c\u306a\u3044\u3053\u3068\u304c\u3057\u3070\u3057\u3070\u554f\u984c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Python\u306b\u306fVer2\u30fcVer3\u306e\u554f\u984c\u306e\u305f\u3081\u3001\u8907\u6570\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6271\u3048\u308bvenv\u3084pyenv\u306a\u3069\u306e\u4eee\u60f3\u74b0\u5883\u8a2d\u5b9a\u30bd\u30d5\u30c8\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u79c1\u306f\u4eca\u307e\u3067\u3053\u308c\u3089\u306e\u5fc5\u8981\u6027\u304c\u3044\u307e\u3044\u3061\u5206\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001Python\u304cLinux\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u539f\u56e0\u3067venv\u3092\u4f7f\u308f\u306a\u3044\u3068\u958b\u767a\u304c\u3067\u304d\u306a\u3044\u4e8b\u614b\u306b\u51fa\u4f1a\u3063\u305f\u306e\u3067\u305d\u306e\u7d4c\u904e\u3092\u30d6\u30ed\u30b0\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u79c1\u304c\u3053\u306e\u554f\u984c\u306b\u30cf\u30de\u3063\u305f\u3068\u304d\u306b\u306f\u3061\u3087\u3046\u3069\u826f\u3044\u8cc7\u6599\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u540c\u3058\u76ee\u306b\u3042\u3063\u3066\u3044\u308b\u4eba\u306e\u305f\u3081\u306b\u6b8b\u3059\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u5206\u306e\u74b0\u5883\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>\u79c1\u304cvenv\u3092\u5c0e\u5165\u3059\u308b\u524d\u306ePython\u5b9f\u884c\u74b0\u5883\u306f\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>OS\u3000Debian \uff18<\/li><li>HW\u3000Alpharacks VPS\u3000\u307b\u3068\u3093\u3069SSH\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u5b9f\u884c<\/li><li>\u958b\u767a\u306fColaboratory\u3067\u3084\u3063\u3066\u691c\u8a3c\u3092VPS\u3067\u3084\u308a\u305f\u304b\u3063\u305f<\/li><li>venv\u306a\u3069\u306e\u74b0\u5883\u4eee\u60f3\u5316\u306e\u5c0e\u5165\u306f\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002System\u306ePython\u3084PIP\u3092\u4f7f\u3063\u3066\u74b0\u5883\u3092\u4f5c\u3063\u3066\u3044\u305f\u3002<\/li><li>numpy\u3084pandas\u306fapt-get\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u305f<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u5206\u306e\u9665\u3063\u305f\u554f\u984c<\/h2>\n\n\n\n<p>\u3082\u3068\u3082\u3068oanda FX\u3067FX\u53d6\u5f15\u306eAPI\u3092\u4f7f\u3063\u3066\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9\u304c\u3057\u305f\u304b\u3063\u305f\u3067\u3059\u3002\u306a\u306e\u3067Colaboratory\u3067API\u3092\u4f7f\u3063\u305fPython\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092VPS\u30b5\u30fc\u30d0\u306b\u30b3\u30d4\u30fc\u3057\u3066\u5b9f\u884c\u3057\u307e\u3057\u305f\u304c\u79fb\u52d5\u5e73\u5747\u3092\u8a08\u7b97\u3057\u3066\u3044\u308bpandas.dataframe.rolling()\u304c\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u30a8\u30e9\u30fc\u304b\u3089\u78ba\u8a8d\u3059\u308b\u3068\u4f7f\u3063\u3066\u3044\u308bpandas\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u304f\u3066\u5358\u306brolling()\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u3060\u3051\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3067\u306fpandas\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u3059\u308c\u3070\u3044\u3044\u3093\u3060\u306d\u3002\u3068\u3044\u3046\u3053\u3068\u3067pip3 install -upgrade pandas\u306e\u3088\u3046\u306b\u3057\u3066\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u8a66\u3057\u307e\u3057\u305f\u304c\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ERROR: Complete output from command \/usr\/bin\/python3 \/usr\/local\/lib\/python3.4\/dist-packages\/pip\/_vendor\/pep517\/_in_process.py get_requires_for_build_wheel \/tmp\/tmpr4sz6i_d:<br>   ERROR: Traceback (most recent call last):<br>     File \"\/usr\/local\/lib\/python3.4\/dist-packages\/pip\/_vendor\/pep517\/_in_process.py\", line 207, in <br>       main()<br>\uff08\u9014\u4e2d\u7565\uff09<br>     File \"\/usr\/local\/lib\/python3.4\/dist-packages\/pip\/_vendor\/pep517\/_in_process.py\", line 39, in _build_backend<br>       obj = getattr(obj, path_part)<br>   AttributeError: 'module' object has no attribute '<strong>legacy<\/strong>'<br> <br> ERROR: Command \"\/usr\/bin\/python3 \/usr\/local\/lib\/python3.4\/dist-packages\/pip\/_vendor\/pep517\/_in_process.py get_requires_for_build_wheel \/tmp\/tmpr4sz6i_d\" failed with error code 1 in \/tmp\/pip-install-nn53f2of\/pandas<\/pre>\n\n\n\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306f\u30b0\u30b0\u3063\u3066\u3082\u7279\u306b\u51fa\u3066\u304d\u307e\u305b\u3093\u304c\u3001\u305d\u306e\u524d\u306b\u300cpython 3.4\u306f2019\u5e743\u6708\u306b\u30b5\u30dd\u30fc\u30c8\u671f\u9593\u304c\u7d42\u4e86\u3059\u308b\u304b\u3089\u65b0\u3057\u3044Python\u3092\u4f7f\u3063\u3066\u306d\u3002\u300d\u3068\u8b66\u544a\u304c\u51fa\u307e\u3057\u305f\u306e\u3067\u3001\u591a\u5206\u3053\u308c\u304c\u539f\u56e0\uff08\u5b9f\u65bd\u6642\u306f2019\u5e744\u6708\uff09\u3060\u3068\u601d\u3044\u3001Python\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306b\u53d6\u308a\u639b\u304b\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u8b66\u544a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).<\/pre>\n\n\n\n<p>Python\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u8abf\u3079\u3066\u3044\u308b\u3068\u3001\u56f0\u3063\u305f\u3053\u3068\u306bDebian\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067Python\u3092\u4f7f\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u96f0\u56f2\u6c17\u3067\u3057\u305f\u3002\u305d\u3057\u3066\u52dd\u624b\u306bUpgrade\u3059\u308b\u306a\u3068\u5404WEB\u30b5\u30a4\u30c8\u306b\u3082\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3058\u3083\u3042Debian\u81ea\u4f53\u3092Upgrade\u3059\u308b\u3057\u304b\u7121\u3044\u304b\u3068\u601d\u3063\u305f\u3089VPS\u3067\u4f7f\u3048\u308bDebian\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\uff18\u307e\u3067\u3067\u3001\u6700\u65b0\u306e\uff19\u304c\u4f7f\u3048\u307e\u305b\u3093\u3067\u3057\u305f\u3002\uff08dist-upgrade\u3082\u3067\u304d\u308b\u3051\u3069\u3068\u308a\u3042\u3048\u305a\u9664\u5916\u3057\u305f\uff09<\/p>\n\n\n\n<p>\u3048\u30fc\uff1f\u3058\u3083\u3042\u3001AlphaRacks\u3092\u4f7f\u3063\u3066\u3044\u308b\u4eba\u306fOandaFX\u306eAPI\u3092\u4f7f\u3048\u306a\u3044\u3063\u3066\u3053\u3068\uff1f\u3068\u601d\u3063\u3066\u3001\u3053\u3053\u3067\u3084\u3063\u3068OS\u30c7\u30d5\u30a9\u30eb\u30c8\u306ePython\u3092\u958b\u767a\u306b\u4f7f\u3046\u3053\u3068\u306b\u5bfe\u3057\u3066\u306e\u9055\u548c\u611f\u3092\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5f8c\u8abf\u3079\u3066\u307f\u308b\u3068\u901a\u5e38Python\u958b\u767a\u3067\u306fOS\u4f7f\u7528\u306ePython\u306f\u4f7f\u308f\u306a\u3044\u3001\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u306a\u3069\u306e\u60c5\u5831\u3092\u898b\u3064\u3051\u3001\u3084\u3063\u3068pyenv\u3084venv\u306a\u3069\u306e\u5b9f\u884c\u74b0\u5883\u4eee\u60f3\u5316\u306e\u610f\u5473\u304c\u5206\u304b\u3063\u305f\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u884c\u74b0\u5883\u4eee\u60f3\u5316\u306e\u610f\u5473\u3068\u306f<\/h2>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306bPython\u306f\u591a\u304f\u306eLinux\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u3053\u306ePython\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u958b\u767a\u306b\u4f7f\u3063\u3066\u306f\u884c\u3051\u307e\u305b\u3093\u3002\u306a\u305c\u306a\u3089\u6b21\u306e\u3088\u3046\u306a\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>OS\u30c7\u30d5\u30a9\u30eb\u30c8\u306ePython\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306a\u3069\u3067\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u90fd\u5408\u3067\u5909\u66f4\u3067\u304d\u306a\u3044\u3002<\/li><li>OS\u30c7\u30d5\u30a9\u30eb\u30c8\u306ePython\u306f\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u304c\u591a\u304f\u3001\u958b\u767a\u306b\u4f7f\u3046\u3068\u30c8\u30e9\u30d6\u30eb\u306e\u3082\u3068\u3002<\/li><li>OS\u30c7\u30d5\u30a9\u30eb\u30c8\u306ePython\u306e\u5834\u5408\u3001numpy\u3084pandas\u3092apt-get\u3067\u8ffd\u52a0\u3067\u304d\u3066\u4fbf\u5229\u306b\u898b\u3048\u308b\u304c\u3001\u3053\u308c\u3082\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u3002<\/li><li>\u958b\u767a\u6848\u4ef6\u304c\u8907\u6570\u3067\u3001\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u306ePython\u3092\u5229\u7528\u3057\u305f\u3044\u4eba\u306b\u306f\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u3002<\/li><li>\u3080\u308a\u3084\u308aOS\u306ePython\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3088\u3046\u3068\u3057\u305f\u3089Apt\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u7d50\u5c40OS\u3092\u5165\u308c\u76f4\u3057\u305f\u3002<\/li><\/ul>\n\n\n\n<p>venv\u3084pyenv\u306fOS\u3067\u4f7f\u3063\u3066\u3044\u308bPython\u3068\u306f\u3079\u3064\u306ePython\u3092\u4eee\u60f3\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30fc\u30eb\u3057\u3066\u81ea\u5206\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u304d\u3060\u3051\u3053\u306ePython\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3067\u3059\u306e\u3067\u6700\u65b0\u306ePython\u3067\u3082\u53e4\u3044Python\u3067\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u304c\u73fe\u5728\u306ePython\u958b\u767a\u306e\u4e3b\u6d41\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4eee\u60f3\u74b0\u5883\u306e\u69cb\u7bc9<\/h2>\n\n\n\n<p>\u4eee\u60f3\u74b0\u5883\u306e\u69cb\u7bc9\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3057\u305f\u3002Python3.3\u3088\u308a\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308c\u3070\u4eee\u60f3\u5316\u306evenv\u304c\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u3053\u308c\u304b\u3089\u5148\u306fvenv\u3092\u4f7f\u3046\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u66f8\u304d\u307e\u3059\u3002\u6b21\u304e\u306foadndaenv\u3068\u3044\u3046\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ python3 -m venv oandaenv<\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u4eee\u60f3\u74b0\u5883\u304c\u69cb\u7bc9\u3055\u308c\u307e\u3059\u3002\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u74b0\u5883\u4e0b\u3067\u3082\u308d\u3082\u308d\u5b9f\u884c\u3059\u308b\u306b\u306factivate\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ source .\/oandaenv\/bin\/activate<br><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u5b9f\u884c\u3067\u30d7\u30ed\u30f3\u30d7\u30c8\u306b(oandaenv)\u304c\u3064\u304f\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u5b9f\u884c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3084\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4eee\u60f3\u74b0\u5883\u306e\u4e2d\u306e\u547d\u4ee4\u306b\u306a\u308a\u307e\u3059\u3002\u4eee\u60f3\u74b0\u5883\u3092\u629c\u3051\u308b\u306b\u306f\u30c7\u30a3\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(oandaenv)$ deactivate<br><\/pre>\n\n\n\n<p>\u4f5c\u3063\u305f\u4eee\u60f3\u74b0\u5883\u3092\u524a\u9664\u3057\u305f\u3044\u5834\u5408\u306f\u30d5\u30a9\u30eb\u30c0\u3054\u3068\u524a\u9664\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rm -rf oandaenv<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4eee\u60f3\u74b0\u5883\u5185\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/h2>\n\n\n\n<p>\u4eee\u60f3\u74b0\u5883\u5316\u3067\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u79c1\u306e\u5834\u5408\u306fPython\u304c3.4\u3060\u3063\u305f\u306e\u30673.6\u306b\u3057\u307e\u3059\u3002Python.org\u306e<a href=\"https:\/\/www.python.org\/downloads\/\">WEB\u30b5\u30a4\u30c8<\/a>\u304b\u30893.6\u306etgz\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ wget https:\/\/www.python.org\/ftp\/python\/3.6.8\/Python-3.6.8.tgz<\/pre>\n\n\n\n<p>2019\u5e744\u6708\u306fpython3.7\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001debian8\u306b\u306fOpenSSL\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u4f9d\u5b58\u304c\u3042\u3063\u30663.7\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u30673.6\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(oandaenv)$ tar xzvf Python-3.6.8.tgz<br>(oandaenv)$ cd Python-3.6.8<br>(oandaenv)$ .\/configure --prefix=\/(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u6240)\/oandaenv<br>(oandaenv)$ make<br>(oandaenv)$ make install<br><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u547d\u4ee4\u3067Python3.6\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u79c1\u306e\u5834\u5408\u306fsetuptools\u3068pip\u304c\u81ea\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6b21\u306bPandas\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(oandaenv)$ pip install pandas<br><\/pre>\n\n\n\n<p>Pandas\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u9577\u304b\u3063\u305fPandas\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u554f\u984c\u304c\u89e3\u6c7a\u3057\u305f\u30fb\u30fb\u30fb\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4eee\u60f3\u74b0\u5883\u5185\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8a2d\u7f6e<\/h2>\n\n\n\n<p>\u4eee\u60f3\u74b0\u5883\u5185\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3067\u304d\u305f\u3089\u6700\u7d42\u7684\u306b\u3069\u3053\u304b\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u8a2d\u7f6e\u3057\u3066cron\u306a\u308aWEB\u30b5\u30fc\u30d3\u30b9\u3068\u3064\u306a\u3052\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3059\u3068\u601d\u3044\u307e\u3059\u3002\u4eee\u60f3\u74b0\u5883\u5185\u3067\u4f5c\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u304b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3044\u304f\u3064\u304b\u306e\u60c5\u5831\u3092\u691c\u7d22\u3059\u308b\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e2d\u306b$source \/\u3007\u3007\/activate\u3068\u66f8\u304f\u8aac\u660e\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u304c\u3001\u79c1\u306e\u74b0\u5883\u3067\u306f\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u52d5\u304b\u306a\u304b\u3063\u305f\u7406\u7531\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001source\u30b3\u30de\u30f3\u30c9\u306f\u5b9f\u969b\u306f\u5225\u306e\u30b3\u30de\u30f3\u30c9\u306ealias\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u74b0\u5883\u5909\u6570\u3092\u8aad\u307f\u8fbc\u307e\u306a\u3044\u3068\u52d5\u304d\u307e\u305b\u3093\u3002\u3053\u308c\u304c\u591a\u5206\u539f\u56e0\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306a\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u4f9d\u5b58\u3057\u305f\u8a2d\u5b9a\u306f\u3042\u307e\u308a\u826f\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u81ea\u5206\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u4ee5\u5916\u3067\u306f\u52d5\u304b\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u79c1\u306e\u5834\u5408\u306fvenv\u74b0\u5883\u4e0b\u3067\u4f5c\u3063\u305fpy\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b\u6642\u306bpython3\u306e\u30d1\u30b9\u3092\u30d5\u30eb\u30d1\u30b9\u3067\u66f8\u304f\u3088\u3046\u306b\u3057\u305f\u3089\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">#!\/bin\/bash\n\/home\/\u4eee\u60f3\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u6240\/bin\/python3.6 \/home\/\u3007\u3007\/test.py<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306bpython3.6\u3092\u30d5\u30eb\u30d1\u30b9\u3067\u66f8\u3044\u305f\u3089\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5f8c\u306f\u4e0a\u8a18\u30d5\u30a1\u30a4\u30eb\u306bmain.sh\u306a\u3069\u540d\u524d\u3092\u3064\u3051\u3066cron\u306a\u3069\u3068\u7d10\u3065\u3051\u3066\u81ea\u52d5\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u306e\u4eee\u60f3\u74b0\u5883\u306e\u610f\u5473\u3068\u5b9f\u884c\u306e\u65b9\u6cd5\u3092\u66f8\u304d\u307e\u3057\u305f\u3002Python\u306f\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u304c\u8c4a\u5bcc\u306a\u3053\u3068\u304c\u9b45\u529b\u3067\u3059\u304c\u3001\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u3092\u4f7f\u3046\u306e\u3067\u3042\u308c\u3070Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306f\u5fc5\u8981\u3067\u3001\u74b0\u5883\u4eee\u60f3\u5316\u3082\u5fc5\u8981\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b66\u7fd2\u304b\u3089\u3001\u5b9f\u88c5\u306b\u306a\u308b\u969b\u306b\u306f\u5fc5\u8981\u306b\u306a\u308b\u6280\u8853\uff08\u8003\u3048\u65b9\uff1f\uff09\u3060\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306f2019\u5e74\u73fe\u5728\u3067\u4e00\u756a\u4eba\u6c17\u306e\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\uff11\u3064\u3067\u3059\u3002\u958b\u767a\u3082\u6d3b\u767a\u306b\u884c\u308f\u308c\u30012008\u5e74\u306bVer3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u304c\u3001Ver2\u3068\u4e92\u63db\u6027\u304c\u306a\u3044\u3053\u3068\u304c\u3057\u3070\u3057\u3070\u554f\u984c\u306b\u306a\u308a\u307e\u3059\u3002 Python\u306b\u306fVer2\u30fcV [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":939,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[112,143,108,169,170,168],"class_list":["post-937","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programing","tag-fx","tag-oanda","tag-python","tag-venv","tag-170","tag-168"],"_links":{"self":[{"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=\/wp\/v2\/posts\/937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=937"}],"version-history":[{"count":12,"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=\/wp\/v2\/posts\/937\/revisions"}],"predecessor-version":[{"id":1187,"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=\/wp\/v2\/posts\/937\/revisions\/1187"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=\/wp\/v2\/media\/939"}],"wp:attachment":[{"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kesoku-blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}