Setting Up Canopy Environment

From CAC Documentation wiki
Jump to navigation Jump to search

Setting Up Canopy Environment

Use the follow instructions to set up your user environment to use canopy-1.4.1 (python):


Setting up Canopy in a bash shell

  • Run Canopy's setup command from the shell, setting it as the default version of Python.
 /opt/canopy-1.4.1/canopy_cli --no-gui-setup setup --set-default ~/canopy
  • Log out and log back in. You should see Python defaults to Canopy Python in your user environment:
 bash-4.1$ which python
 ~/canopy/bin/python

Setting up Canopy in a windowed environment

  • Run canopy:
 /opt/canopy-1.4.1/canopy
  • Click "Continue" on Canopy Environment Setup screen:

Canopy Environment Setup.png

  • Select "Yes" on Make Canopy your default Python environment screen and click "Start using Canopy". You can quit the GUI at this time.

Canopy Default.png

  • Add the following line in your .profile
VIRTUAL_ENV_DISABLE_PROMPT=1 source ~/Enthought/Canopy_32bit/User/bin/activate
  • Log out and log back in. You should see Python defaults to Canopy Python in your user environment:
 bash-4.1$ which python
 ~/Enthought/Canopy_64bit/User/bin/python