2010年7月10日土曜日

virtualenv が上手く動作しない場合は -p オプションと --distribute オプションを試す

Python Hackathon  virtualenv  buildout 

virtualenv
pythonsite-package
python virtualenv.py --no-site-package myenv
Mac OS X 10.6Python 2.6.1
New python executable in foo/bin/python
ERROR: The executable foo/bin/python is not functioning
ERROR: It thinks sys.prefix is '/System/Library/Frameworks/Python.framework/Versions/2.6' (should be '/private/tmp/virtualenv-1.4.3/foo')
ERROR: virtualenv is not compatible with this system or executable
 https:/
/bitbucket.org/ianb/virtualenv/issue/17/virtualenv-not-working-with-default-python-on-mac-os 
python virtualenv.py --no-site-package -p /usr/bin/python myenv
-p使
Python


buildout
buildoutbootstrap.pyMac OS X 10.6Python 2.6.1setuptools0.6c9
akisute server$ python bootstrap.py 
The required version of setuptools (>=0.6c11) is not available, and
can't be installed while this script is running. Please install
a more recent version first, using 'easy_install -U setuptools'.

(Currently using setuptools 0.6c9 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python))
setuptools--distribute使
python bootstrap.py --distribute
distribute
setuptoolsbuildoutbuildout