Windows ç¨ã§ãï¼ ä»ç¾å¨ã¯ Ubuntu ã使ã£ã¦ãã¦ã»ã¨ãã© pip ã§æ¸ã¾ãã¦ãã¾ãï¼ ä¸è¬ ç®ç ã³ãã³ã è£è¶³
æ¦è¦ Python ã§ããã°ã©ã ããéã«ã¨ã¦ã便å©ãª Anaconda ã§ãããé·ã使ã£ã¦ããã¨ã³ã³ãã¥ã¼ã¿ã®ãã¼ããã©ã¤ãã®è¦é ãå§è¿«ãå§ãã¾ããã æ¬ç¨¿ã§ã¯ããã㪠Anaconda ã®ä¸è¦ã«ãªã£ããã¡ã¤ã«ãæ´çã»åé¤ãã¦ããã¼ããã©ã¤ããã¯ãªã¼ã³ãªç¶æ ã«ä¿ã¤æ¹æ³ã解説ãã¾ãã ãªãAnacondaãè¥å¤§åãããï¼ ããããããªã Anaconda ã®ãã¡ã¤ã«ãè¥å¤§åããã®ã§ããããï¼ ä¸çªå¤§ããªçç±ã¯ãconda install ã§ã¤ã³ã¹ãã¼ã«ããããã±ã¼ã¸ã®ãã£ãã·ã¥ãæ®ã£ã¦ããããã§ãã ç¹ã«ããã±ã¼ã¸ã¯æ¥ã ãã¼ã¸ã§ã³ã¢ããããã¦ãããåä¸ã®ããã±ã¼ã¸ã§ãæ°ãã« conda install ããã¨æ°ããããã±ã¼ã¸ããã¦ã³ãã¼ãããã¦ãå¤ãããã±ã¼ã¸ã®ãã£ãã·ã¥ã¯æ®ã£ãã¾ã¾ã«ãªã£ã¦ãã¾ãã¾ãã å¤ãããã±ã¼ã¸ã¯å°æ¥ä½¿ããã¨ããªãããç¥ããªãã®ã«ããã¼ããã©ã¤ãã«ãã£ãã·ã¥ãæ®ã£ã¦ã
æ¦è¦ æè¿ã¯ãã¼ã¿åæãªã©ã®ããã«Pythonç°å¢ãæã£åãæ©ãæ§ç¯ããéã«Anacondaããã使ããã¦ããããã§ãã Anacondaããã³ãããæå°æ§æã«ããMinicondaã§ã¯ãä»å±ã®ããã±ã¼ã¸ããã¼ã¸ã£condaãç¨ãã¦Pythonæ¬ä½ãå«ãç°å¢å ¨ä½ã管çãããã¨ãã§ãã¾ãã å¾æ¥ã®Pythonéçºã§ã¯ã次ã®ããã«ç¨éã«å¿ãã¦åå¥ã®ãã¼ã«ã使ãç°å¢ãæ§ç¯ãããã¨ãå¿ è¦ã§ããã pip: ããã±ã¼ã¸ã®ç®¡ç virtualenv | venv: è¤æ°ã®ããã±ã¼ã¸ãå«ãç°å¢ã®ç®¡ç pyenv: Pythonæ¬ä½ã®ç®¡ç Anaconda/Minicondaã§ã¯ããããcondaã®ã¿ã§è¡ããã¨ãå¯è½ã§ãã conda create ã§Pythonæ¬ä½ãå«ããç°å¢ãä½æ conda install ã§ããã±ã¼ã¸ã追å ãã¼ã éçºãè¡ã£ã¦ããããææç©ãæ¬çªãµã¼ãã§ç¨¼åããããããªå ´é¢ã§ã¯ã
(è¿½è¨ 2022-11-05) æ¬è¨äºã®å 容(ãªãªã¸ãã«ã¯2020å¹´ã®7æé )ã§ããã 2年以ä¸çµã£ã¦ä¹ ã ã«è¦è¿ãã¦ã¿ãã¨æãªããè²ã ã¨ãããããªãç¹ããã£ãããã«æãã®ã§ã å¯è½ãªç¯å²ã§ç´ããæ¹åç: yamlã§ä¿åãã¦ããcondaä»®æ³ç°å¢ãDockerä¸ã§æ§ç¯(multistage-build)ãæ¬è¨äºã®ç¶ãã¨ãã¦æ¸ãã¦ãã¾ãã æ¬è¨äºã ã¨dockerå ã§ä½æãã¦ããã¦ã¼ã¶ã¼ã®æ¨©éã大ãéããããminicondaã使ã£ã¦ããé¢ä¿ã§åç¨å©ç¨ãæååããã¦ããAnacondaãªãã¸ããªããæå³ããã«ããã±ã¼ã¸ãåå¾ãã¦ãã¾ãå¯è½æ§ããã£ããã¨ããã®ã¾ã¾å®è¡ããã¨æ¸å¿µç¹ãããã®ã§æ³¨æãã¦ãã ããã Dockerä¸ã§Pythonç°å¢ãä½ãã¨ãã«pipãPipenvãªã©ã使ãã®ã ãã使ãã©ã¤ãã©ãªãããã±ã¼ã¸ã®é¢ä¿ã§condaç°å¢ã使ããã¨ä¾¿å©ãªãã¨ãããã æã£ãéãã®condaç°å¢ãDo
Anacondaã¨Minicondaã«ã¤ã㦠pythonã§æ©æ¢°å¦ç¿ç°å¢ãæ§ç¯ããã¨ãªãã¨ãå¤ãã®æ¸ç±ããµã¤ãã§ã¨ããããAnacondaã使ã£ã¦ããã°ããã¨æ¸ããã¦ãã¾ãã ãããã«Anacondaã§ã¯ç°¡åã«ç°å¢æ§ç¯ãã§ãã¾ããããã¡ãªãããããã¾ããããã§ãAnacondaã¨Minicondaããããã«ã¤ãã¦ã®ç¹å¾´ãæ¯è¼ãã¦ã¿ã¾ããã ãPython+Rè¨èª+conda+1000以ä¸ã®é¢é£ããã±ã¼ã¸ï¼å®è¡ç°å¢+etc.â¦ã Anacondaãã¤ã³ã¹ãã¼ã«ããã¨ãPythonã®ã¨åããã¦ç§å¦è¨ç®ã»ãã¼ã¿ãµã¤ã»ã³ã¹ç¨ã®ããã±ã¼ã¸ç¾¤ã使ç¨ã§ããããã«ãªãã¾ããã¾ããPythonã«ä¸¦ã¶ãã¼ã¿ãµã¤ã¨ã³ã¹åãããã°ã©ãã³ã°è¨èªã§ãããRããããããã®ç·åéçºç°å¢ãå«ã¾ãã¾ãã大éæã«ã¾ã¨ãã¦ã以ä¸ã®ã¢ããªã±ã¼ã·ã§ã³é¡ãã¤ã³ã¹ãã¼ã«ãããã Anacondaã«å«ã¾ãããã® ããã°ã©ãã³ã°è¨èªï¼pyt
å ¬å¼ãµã¤ãï¼http://conda.pydata.org/docs/index.html 以ä¸ã¯ãMAC OSXç¨ã®condaã³ãã³ãã¡ã¢ã§ãã pyenvãanaconda(miniconda)ã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ã®åæã§ãã #condaã£ã¦ï¼ condaã¯ã主ã«Pythonç¨ã«ä½ãããããã±ã¼ã¸ç®¡çã·ã¹ãã ã¨ç°å¢ããã¸ã¡ã³ãã·ã¹ãã ã§ãã åä½ã§ã¯ãªãªã¼ã¹ããã¦ããããAnacondaãAnacondaãµã¼ãã¼ãMinicondaã«å å ããã¦ãããã®ã§ãã AnacondaãAnacondaãµã¼ãã¼ãMinicondaã¯ãPythonã®æ°å¤è¨ç®ç°å¢ãæ§ç¯ããããã«ãæ§ã ãªããã±ã¼ã¸ãã¾ã¨ãããã£ã¹ããªãã¥ã¼ã·ã§ã³ã§ãã æ©æ¢°å¦ç¿ã©ã¤ãã©ãªã®ããã±ã¼ã¸çãç°¡åã«ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã LinuxãWindowsãMacOSçã®OSæ¯ã®ã³ã³ãã¤ã«çã®æéããã©ãã«ãã¹ãããã§ãã¾ãã ï¼
stfuawsc_itg_advent2014_4_conda.md ãã㯠stfuawsc_itg Advent Calendar 2014 4æ¥ç®ã®è¨äºã§ãã ããã°ã©ãã³ã°ããã¦ããã¨ããããããªãã¼ã¸ã§ã³ã®ç°å¢ãè¡ã£ããæ¥ããããããªããã¨ãããã¾ãããã¨ãã°è¨èªå¦ç㯠python 2 㸠nltk ãå ¥ãã¦ãããããã·ãã¥ã¬ã¼ã·ã§ã³ã¯ python 3 㸠numpy å ¥ãã¦ããããã¨ãã ãããããµãã«è¨èªãã¢ã¸ã¥ã¼ã«ã®ãã¼ã¸ã§ã³ãããããçµåããç°å¢ãæ°è»½ã«åãæ¿ããããã¨ä¾¿å©ã§ãã å®éãããããã¨ãå¯è½ã«ãããã¼ã«ã¯ããããããã¾ããvirtualenv, pyenv ãªã©ã ããã§ç´¹ä»ãã conda ã¨ãããã¼ã«ããã®1ã¤ã§ãã virtualenv ãªã©ã§ã¯ãã¢ã¸ã¥ã¼ã«ãå ¥ããã¨ãã¯é常㮠python ã®æµåã§ã¤ã³ã¹ãã¼ã«ããã®ã§ãããã¤ã³ã¹ãã¼ã«ããã¾ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}