Difference between revisions of "Setting Up Canopy Environment"

From CAC Documentation wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
=='''Setting Up Canopy Environment'''==
 
=='''Setting Up Canopy Environment'''==
 
Use the follow instructions to set up your user environment to use canopy-1.4.1 (python):
 
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:
 
* Run canopy:
Line 14: Line 26:
 
  VIRTUAL_ENV_DISABLE_PROMPT=1 source ~/Enthought/Canopy_32bit/User/bin/activate
 
  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:
+
* Log out and log back in. You should see Python defaults to Canopy Python in your user environment:
   -bash-4.1$ which python
+
   bash-4.1$ which python
 
   ~/Enthought/Canopy_64bit/User/bin/python
 
   ~/Enthought/Canopy_64bit/User/bin/python

Latest revision as of 11:07, 26 May 2016

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