Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Download and install the <a href="http://python.org/download/" rel="noreferrer">Python 2.7.1 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS X 10.6)</a> or <a href="http://python.org/download/" rel="noreferrer">Python 2.7.1 Mac OS X 32-bit i386/PPC Installer (for Mac OS X 10.3 through 10.6)</a>.</p> <h2>Instructions for installing virtualenv and pip on OS X</h2> <p>This is how I installed <code>virtualenv</code> and <code>pip</code> on OS X:</p> <pre><code>curl -O http://peak.telecommunity.com/dist/ez_setup.py sudo python ez_setup.py sudo easy_install pip sudo pip install virtualenv </code></pre> <p>I also like to use <a href="http://www.doughellmann.com/projects/virtualenvwrapper/" rel="noreferrer"><code>virtualenvwrapper</code></a> with <code>virtualenv</code>, so I installed it using:</p> <pre><code>sudo pip install virtualenvwrapper </code></pre> <p>I originally picked up this information from Jesse Noller's article <a href="http://jessenoller.com/2009/03/16/so-you-want-to-use-python-on-the-mac/" rel="noreferrer">"SO YOU WANT TO USE PYTHON ON THE MAC?"</a></p> <h2><code>~/.bash_profile</code> Settings</h2> <p>This is probably overkill, but below is the Mac OS X section of my <code>~/.bash_profile</code>. I have multiple versions of Python installed using the Python.org installers, which is why I go through the for loop to add each version of Python.</p> <pre><code># Mac OS X specific settings if [ ${os_name} == 'Darwin' ]; then # The last Python added to PATH will be the default Python PY_VER=( '3.1' '2.6' '2.7') PY_VER_ELEMENTS=${#PY_VER[@]} DEFAULT_PY=${PY_VER[${PY_VER_ELEMENTS}-1]} PY_FW="/Library/Frameworks/Python.framework/Versions" for (( i=0;i&lt;$PY_VER_ELEMENTS;i++)); do if [ -x ${PY_FW}/${PY_VER[${i}]}/bin/python${PY_VER[${i}]} ]; then PATH="${PY_FW}/${PY_VER[${i}]}/bin:${PATH}" export PATH fi done # Check for virtualenv in the default Python if [ -x ${PY_FW}/${DEFAULT_PY}/bin/virtualenv ]; then export VIRTUALENV_USE_DISTRIBUTE=true export WORKON_HOME=$HOME/.virtualenvs fi # Check for pip if [ -x ${PY_FW}/${DEFAULT_PY}/bin/pip ]; then export PIP_VIRTUALENV_BASE=$WORKON_HOME export PIP_REQUIRE_VIRTUALENV=true export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache fi # Enable virtualenvwrapper if [ -x ${PY_FW}/${DEFAULT_PY}/bin/virtualenvwrapper.sh ]; then source ${PY_FW}/${DEFAULT_PY}/bin/virtualenvwrapper.sh fi fi </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload