Friday 15 April 2011

Running Enthought Canopy Python as root cannot import pandas -


I want to use files and directories for which Python scripts may need to be used with command line calls Which is using Anthot Canopy Python. Although running Python in the form of root gives me the system distributed dragon.

  $ python Enthought Canopy Python 2.7.6 | 64-bit | (Default, 15 September 2014, 17: 36:10) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] "help", "copyright", "credit" or " License" . $ Sudo Python Python 2.7.6 (Default, 22 March 2014, 22:59:56) [GCC 4.8.2] on linux2 For more information, "Help", "Copyright", "Credit" or "License"  

Using the default Bash Terminal (Ubuntu Linux 14.04) and using the canopy command line (canopy 1.5.2) the same result.

I reinstalled Connaught as a root (ie, re-root the script as a root) and the same problem still arises.

Is there an easy way to run choppy in the form of a root? I'm not trying to distribute it to many users on the system, just need to run a dragon script on files that require root permissions.

It does not seem to use executables to run the sudo to find your current path settings Has been doing. IIRC is a configuration option for this pseudo, whether or not to use a limited default PATH.

An easy way to work around this is to specify the complete path to the dragon that you want to execute. For example, if you have activated a canopy virtual environment, you can do this:

$ sudo $ VIRTUAL_ENV / bin / python


No comments:

Post a Comment