Pythonä¸å¿ã«ãæ¥ã çºçããçåç¹ã解決çãè¨é²ãã¦ããã¾ãã å 容ãééã£ã¦ãããã´ã¡ã³ãã ï¼ ãã®ããã°ã¯ç®æ¬¡ãç¨æãã¦ãã¾ããè¨äºããæ¢ãã®éã¯ããå©ç¨ãã ããã ï¼ ä»åãvirtualenv ã«ã¤ãã¦ç°¡åã«è§¦ãã¦ã¿ããã¨æãã¾ãã virtualenv ã«ã¤ãã¦ã¯ãæ¢ã«ãµã¤ããããã°ã§ç´¹ä»ãã¦ããã¨ãããå¤ããç§ãå¹¾ã¤ãã®è¨äºãèªãã§ã¿ããããã©ããã¤ãã¤ãããããªãã ã¨ããç¶æ ã ã£ãã ãããå®éã«ä½¿ã£ã¦ã¿ãã¨ãããªã便å©ã ã¨ãããã¨ãããã£ã¦ããããã®ããããã¡ã¢æ¸ãï¼Î±ã ã¬ãã«ã§ virtualenv ã«ã¤ãã¦æ¸ãã¦ã¿ãã virtualenv ã®æ©è½ virtualenv 㯠Python ã®ä»®æ³ç°å¢ãæä¾ãããããæ¸ãã¨ããããããPython ã®ç°å¢èªä½ãä»®æ³ã§ã¯ãªãã®ï¼ããã¨æã人ããããããããªããå®ã¯ç§ãããæãã¾ããã»ã»ã»ã ããå°ãä»ã足ãã¦æ¸ãã¨
çµæ§åããæ°ã«ãªã£ã¦ãã¾ããããããããç§ã virtualenv ãå ¥ãã¦ã¿ããã¨ã«ãã¾ããã virtualenv - Python Package Index ãã® virtualenv ã¨ãããã¼ã«ããæ軽ã«Pythonã®ä»®æ³éçºç°å¢ãä½ããã¨ãã§ãããã®ã§ãã ç§ã¯pipããã¤ã³ã¹ãã¼ã«ãã¾ããããeasy_installããã§ãã¤ã³ã¹ãã¼ã«ã§ããããã§ãã Windowsç°å¢ã§ã®virtualenvãã¦ããåç¥ã®æ¹ãããã£ãããããããã¾ããããç§ã¯Windowsã¦ã¼ã¶ã¼ã§ãã virtualenvã«éãããPythonã«é¢ããæ å ±ã¯LinuxãMacã¦ã¼ã¶ã¼ããã®ãã®ãå¤ãã§ãã ã¨ã¯è¨ããPythonã¯æ¯è¼çã¯ãã¹ãã©ãããã©ã¼ã ã«åãå ¥ãã¦ããããã°ã©ãã³ã°è¨èªã§ãã¦ã大æµã®ãã¨ã¯Windowsã§ãã§ãã¾ãã ã§ãvirtualenvã¯Windowsç°å¢ã§ãåé¡ãªãã¤ã³ã¹
One of the solutions to the ghetto of Python package management is to use a sand-boxed Python install like virtualenv. This is the very same technique we use at Smarkets to simultaneously run Pylons and Django alongside each other on a single server. This post is briefly about how to get up and running in a few minutes using virtualenv and Django. Install virtualenvInstalling virtualenv is easy on
virtualenv¶ virtualenv is a tool to create isolated Python environments. Since Python 3.3, a subset of it has been integrated into the standard library under the venv module. The venv module does not offer all features of this library, to name just a few more prominent: is slower (by not having the app-data seed method), is not as extendable, cannot create virtual environments for arbitrarily inst
virtualenvã£ã¦ä½ï¼ Pythonã§éçºç°å¢ãæ§ç¯ãã¦ããæã«ã æ¢åã®ç°å¢ã¨å¥ã«ããã¸ã§ã¯ãã«ç¹åããç°å¢ãä½ããã è¤æ°ã®ãã¼ã¸ã§ã³ã®Pythonã使ã£ã¦ç°å¢ãä½ããã ã¨ãã£ããã¼ãºãåºã¦ããã¨æãã¾ãã ããã§ãvirtualenvã使ãã¨ä¸è¨ã®ãããªãã¼ãºã«å¯¾å¿åºæ¥ãã pipã£ã¦ä½ï¼ èªåã®PCä¸ã«ç°å¢ãä½ãã®ã§ããã°ããpipããå©ç¨ãã¦ç°å¢ãä½ãã®ãè¯ãããã§ãã pipã¯ãé·ãã使ããã¦ããeasy_installã®ä»£ããã¨ãªãããã±ã¼ã¸ç®¡çãã¼ã«ã§ãã phpã®pearãrubyã®gemãperlã®cpanã¿ãããªæãï¼ï¼ ã¡ãªããã¨ãã¦ã¯ã ããã±ã¼ã¸ã®uninstallãåºæ¥ãã freezeã§ã¤ã³ã¹ãã¼ã«ããããã±ã¼ã¸ã®ä¸è¦§ã表示ã§ããã ã¤ã³ã¹ãã¼ã«ããã«ã©ã®ããã«ã¤ã³ã¹ãã¼ã«ãããã®ã確èªã§ããã bundleåºæ¥ã(ZIPå½¢å¼ã§ããã±ã¼ã¸ã³ã°ãããã
注æ ãã®å 容ã¯ãã§ã«å¤ããªã£ã¦ãã¾ãã pipã®ä½¿ãæ¹ (2014/1ãã¼ã¸ã§ã³) ãåç §ãã¦ãã ããã pipã¨ã¯ãPythonã«ãããããã±ã¼ã¸ç®¡çã·ã¹ãã ã§ããeasy_installã¨ãããã¼ã«ãããã®ã§ãããpipã¯ãã®easy_installãç½®ãæãããã®ã¨ãã¦éçºããã¦ãã¾ããrubyã®gemãperlã®cpançãªä½ç½®ã¥ãã§ãã åãããã±ã¼ã¸ç®¡çãã¼ã«ã¨ãã¦setuptoolsç½®ãæãã®distributeã¨ãããã®ãããã®ã§ããããã¡ãã¯setuptoolså ¨ä½ãç½®ãæãããã®ã¨ãã¦éçºããã¦ãããpipã¯setuptoolsã®ä¸é¨ã§ããeasy_installãç½®ãæããå½¢ã§ãã ãªããç¾å¨ã®pipã®ãã¼ã¸ã§ã³ã¯0.8.2ã§ããã®ã¨ã³ããªã¯ãã®ãã¼ã¸ã§ã³ã使ã£ã¦ãã¾ãã ãªã«ãããããç¹ãããã°ããææãã ããã > èè ã®æ¹ã pipã®install ã¾ãã¯ea
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}