ã使ç¨pip3ãã¦ããã±ã¼ã¸ãã«ã¤ã³ã¹ãã¼ã«ããã¨ãããã±ã¼ã¸virtualenvã¯virtualenvãã©ã«ãã¼ã§ã¯ãªããã°ãã¼ãã«ãªsite-packagesãã©ã«ãã¼ã«ã¤ã³ã¹ãã¼ã«ããã¾ããOS X Mavericksï¼10.9.1ï¼ã§Python3ã¨virtualenvãè¨å®ããæ¹æ³ã¯æ¬¡ã®ã¨ããã§ãã ç§ã¯Homebrewã使ç¨ãã¦Python3ãã¤ã³ã¹ãã¼ã«ãã¾ããï¼ python-3ã ãã®ããã±ã¼ã¸ã®å ´å. èªåã§éçºããPythonããã°ã©ã ãåå©ç¨ããããããã«ãã©ã¤ãã©ãªã¨ãã¦æ´åããããã¨ãããã¨æãã¾ããæ¬è¨äºã§ã¯Pythonããã°ã©ã ãã©ã¤ãã©ãªåããããã®æé ã解説ãã¾ããPythonããã°ã©ã ã®ã®ã¢ã¸ã¥ã¼ã«åã«å ãã¦ãã³ãã³ãã©ã¤ã³ãä½æããæ¹æ³ã«ã¤ãã¦ã触ãã¾ãã Python 2 ã® 2.7.9 以ä¸ãã¾ã㯠Python 3 ã® 3.4 以ä¸ã python.org ããã¤ã³ã¹ãã¼ã«ããå ´åã pip 㨠setuptools ã¯æ¢ã«åå¨ããã ãã ãææ°çã¸ã®ã¢ãã㰠⦠µãããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã¢ããã°ã¬ã¼ãã㢠⦠Python 3.4以éã«ã¯ãæ¨æºã§ä»å±ãã¦ãã¾ãã ã³ãã³ãã¯ãpip ã§ã¯ãªãã pip3 ã§è¡ãã¾ããï¼ç´ããããï¼ç¬ï¼ è¦ãã¦ãããã pip ã³ãã³ã. Pythonã«ã¯è¤æ°ã®ã¢ã¸ã¥ã¼ã«ãæãã¦æ±ãããã®ãããã±ã¼ã¸ãã¨ããä»çµã¿ãããããã®ä½ãæ¹ãã¤ã³ãã¼ãæ¹æ³ãªã©ã«ã¤ãã¦è¦ã¦ãããã (1/2) ã¾ãPythonã¤ã³ã¿ã¼ããªã¿ã«pipãä»å±ãã¦ãããã©ããã確èªãã¾ããã³ãã³ãããã³ããã§ä¸è¨ã³ãã³ããå®è¡ãã¦ã¿ã¦ãã ããã 次ã®ããã«pipã®ãã¼ã¸ã§ã³ã表示ãããã°ãpipãä»å±ãã¦ããã¤ã³ã¿ã¼ããªã¿ã§ãã pipãä»å±ãã¦ããªãå ´åã次ã®ãããªæé ã§ã¤ã³ã¹ãã¼ã«ãããã¨ãã§ãã¾ããã¾ãã¯get-pip.pyããã¦ã³ãã¼ããã¦ãã ããã https://bootstrap.pypa.io/get-pip.py ãã¦ã³ãã¼ããçµäºãããä¸è¨ã³ãã³ããå®è¡ãã¦ãã ãããã¤ã³ã¹ãã¼ã«çµäºå¾ãåé ã®ã³ãã³ããå度å®è¡ããpipã®ã㼠⦠ã¹ãã ã«ã¤ã³ã¹ãã¼ã«ããã¨åé¡ãçºçãã¾ãã ãã®è¨äºã§ã¯Pythonã®virtualenvã«ã¤ãã¦è§£èª¬ããããã¨æãã¾ããPythonã§ã¯éçºç°å¢ãä»®æ³åã§ããvirtualenvã¨ããã½ããã¦ã§ã¢ãç¨æããã¦ãã¾ãã Pythonã®ãã¼ã¸ã§ã³ãã¨ã«åããéçºç°å¢ãä½ããã æ°ãããã¼ã¸ã§ã³ã®ã¢ã¸ã¥ã¼ã«ãããã±ã¼ã¸ã試ãã¦ã¿ãã è¯ãç¥ããã§ãã Python 3.4 ï¼2014å¹´3æãªãªã¼ã¹ï¼ã¨ Python 2.7.9 ï¼2014å¹´12æãªãªã¼ã¹ï¼ã¯Pipã«å梱ããã¦ãã¾ãã ããã¯ã©ã®Pythonãªãªã¼ã¹ã§ãæé«ã®æ©è½ã§ããããã¯ã³ãã¥ããã£ã®è±å¯ãªå³æ¸é¤¨ã誰ããå©ç¨ã§ããããã«ãã¾ãã python setup.py develop pip listã§ç¢ºèªããã¨. Python 3.5ï½3.8ãpipãvenv ã 19.0 以éãå¿
è¦ã§ã python3 --version pip3 --version. ããã§ã¯Pythonã®ããããããã±ã¼ã¸ã15é¸ãPythonã§ã§ãããã¨10åããç´¹ä»ãã¾ããPythonã§ä½ãã§ãããç¥ããããPythonã®ããã±ã¼ã¸ã®ç¨®é¡ã¨ä¸èº«ãç¥ãããã¨ããæ¹ã«åããå
容ã¨ãªã£ã¦ãã¾ãã®ã§åèã«ãã¦ãã ããã ä¸è¨ã®ããã±ã¼ã¸ããã§ã«ã¤ã³ã¹ãã¼ã«ããã¦ããå ´åã¯ã次ã®æé ã«é²ã¿ã¾ãã ã¤ã³ã¹ãã¼ã«ããã¦ããªãå ´åã¯ãPythonãpip ããã±ã¼ã¸ ããã¼ã¸ã£ã¼ãvenv ãã¤ã³ã¹ãã¼ã«ãã¾ãã freezeï¼Output installed packages in requirements format. æ³ã解説ãåå¿è
åãã, åå¿è
åãããã°ã©ãã³ã°è¨èªããããã©ã³ãã³ã°ã2020å¹´ææ°ã, Webã¢ããªéçºã¨ã¯ï¼å
¥éè
ãã¼ãããéçºããããã®ç¥èã¨å¦ç¿æé ã¾ã¨ã, ããã°ã©ãã³ã°ãç¬å¦ã§å¦ç¿ããæ¹æ³ã¨æ«æããªãã3ã¤ã®ã³ã, ããã°ã©ãã³ã°ãå§ããåã«ç¥ã£ã¦ããããåºç¤ç¥èã¨3ã¤ã®éå, ããã°ã©ãã³ã°å¦ç¿ãã©ã³ã®è¨ºæãåããï¼ç¡æï¼.