Minicondaã試ããã¨ããã
æ®æ®µãPythonãHomebrewã§ã¤ã³ã¹ãã¼ã«ããpyenvã§ä½¿ã£ã¦ããã®ã§ããããµã¨pyenv install -lãè¦ã¦ã¿ããè²ã ãªããã±ã¼ã¸ãããã¾ããã
$ pyenv install -l Available versions: 2.4.0 ... # ãµã¤ãã®Python2ç³» 2.7.7 3.0.1 ... # ãµã¤ãã®Python3ç³» 3.4.1 anaconda-1.4.0 ... # æ°å¤è¨ç®ã©ã¤ãã©ãªãæåããå ¥ã£ã¦ãPython anaconda-1.8.0 ... miniconda-2.2.2 ... # ãªãã ããï¼ miniconda3-3.4.2 ...
ã©ããããMinicondaã¨ããã®ã¯Pythonã§æ°å¤è¨ç®ã®ã©ã¤ãã©ãªã使ãããã®ããã±ã¼ã¸ã®ããã§ãããAnacondaã¨éã£ã¦ããã¨ããã©ã¤ãã©ãªãé¸ãã§å ¥ããããã§ããã
http://conda.pydata.org/miniconda.html
ããã§ãã£ãããªã®ã§ã試ãã«å ¥ãã¦ã¿ã¾ããã
ã¾ããpyenvã§Minicondaã®ææ°çãå ¥ãã¾ã
$ pyenv install miniconda-3.4.2 $ pyenv global miniconda-3.4.2 $ pyenv rehash (ä¸åº¦ã·ã§ã«ãéãç´ã) $ python --version Python 2.7.7 :: Continuum Analytics, Inc. $ conda list # packages in environment at /Users/rkmathi/.pyenv/versions/miniconda-3.4.2: # conda 3.5.5 py27_0 openssl 1.0.1h 0 pip 1.5.6 py27_0 pycosat 0.6.1 py27_0 python 2.7.7 0 pyyaml 3.11 py27_0 readline 6.2 2 requests 2.3.0 py27_0 setuptools 3.6 py27_0 sqlite 3.8.4.1 0 tk 8.5.15 0 wsgiref 0.1.2 <pip> yaml 0.1.4 1 zlib 1.2.7 1 $ conda install numpy Fetching package metadata: .. Solving package specifications: . Package plan for installation in environment /Users/rkmathi/.pyenv/versions/miniconda-3.4.2: The following packages will be downloaded: package | build ---------------------------|----------------- numpy-1.8.1 | py27_0 3.0 MB The following packages will be linked: package | build ---------------------------|----------------- numpy-1.8.1 | py27_0 hard-link Proceed ([y]/n)? yes Fetching packages ... numpy-1.8.1-py 100% |#######| Time: 0:00:46 67.81 kB/s Extracting packages ... [ COMPLETE ] |#######| 100% Linking packages ... [ COMPLETE ] |#######| 100 $ conda list # packages in environment at /Users/rkmathi/.pyenv/versions/miniconda-3.4.2: # ... numpy 1.8.1 py27_0 ...
ãããªãããã§ãã¨ããããNumPyãå ¥ããã¨ããã¾ã§åããã¾ããã
次ã«ãã¤ã³ã¹ãã¼ã«ããããã±ã¼ã¸ã使ã£ã¦ç°å¢ãä½ãã¾ãã
virtualenvwrapperã¿ãããªãããã§ãããç°å¢ãä½ãã¨ãã®å ¥ãããããã±ã¼ã¸ãèªåã§é¸ã³ã足ããªãå ´åã¯ãã¦ã³ãã¼ããããã¦ããã¾ãã
ä¾ã¨ãã¦ãNumpy 2.1.0ã¨IPythonãã¤ã³ã¹ãã¼ã«ããnumpy21
ã¨ããååã®ç°å¢ãä½ã£ã¦ã¿ã¾ãã
$ conda create -n numpy21 ipython numpy=2.1.0 Fetching package metadata: .. Solving package specifications: . Package plan for installation in environment /Users/rkmathi/.pyenv/versions/miniconda-3.4.2/envs/numpy21: The following packages will be linked: package | build ---------------------------|----------------- ipython-2.1.0 | py27_2 hard-link numpy-1.8.1 | py27_0 hard-link openssl-1.0.1h | 0 hard-link python-2.7.7 | 0 hard-link python.app-1.2 | py27_2 hard-link readline-6.2 | 2 hard-link sqlite-3.8.4.1 | 0 hard-link tk-8.5.15 | 0 hard-link zlib-1.2.7 | 1 hard-link Proceed ([y]/n)? yes Linking packages ... [ COMPLETE ] |######| 100% # # To activate this environment, use: # $ source activate numpy21 # # To deactivate this environment, use: # $ source deactivate # $ source activate numpy21
ããããä½æ ãèªåã®ç°å¢ã ã¨activateããç¬éã«ã·ã§ã«ãã¨è½ã¡ã¾ãã(ï¼Â´Ðï½)
ï¾ ï¾ï¾ï¾ï½°