I've installed the Enthought Python Distribution, which is basically a glorified Python distribution with added libraries for numerical and scientific computing. Now, since I use Debian, there is Python installed already. If I wish to use the Enthought Python for all work, how would I go about doing that?
Right now I am using a rudimentary alias like:
alias python='/usr/local/share/enthought/bin/python'
This is fine, but fails for shebang directives like #! /usr/bin/env python
in independent Python scripts. So how do I get the system to use Enthought Python (without breaking anything of course!). Thanks!
Enthought Canopy is a comprehensive Python-based analysis environment for scientists, engineers and analysts. It provides easy installation of the core analytic and scientific Python packages for rapid data collection, manipulation, analysis and visualization, algorithm design, and application development.
Enthought's Python Distribution is the Python which is installed by EDM or Canopy. It provides over 1000 Python packages to scientists and engineers. It grows weekly, and is available free to all users.
I think this is the official way of doing it, as recommended by Enthought:
export PATH=/usr/local/EPD/bin:$PATH
if you installed to /usr/local/EPD
. Otherwise, the general form is
export PATH=/path/to/EPD/bin:$PATH
This prepends the path to the EPD binary directory to your system PATH variable. The :
is some sort of concatenate symbol. You can either run this in terminal every time, or you can put this in your ~/.bashrc file.
Critical Edit:
It turns out that EPD should actually be appended to the PATH, or you may have OS problems. Do it like this:
export PATH=$PATH:/path/to/EPD/bin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With