Running Enthought Canopy Python as root cannot import pandas -


i want access files , directories may require root permission command line call python script using enthought canopy python. running python root gives me system distributed python.

$ python  enthought canopy python 2.7.6 | 64-bit | (default, sep 15 2014, 17:36:10)  [gcc 4.1.2 20080704 (red hat 4.1.2-54)] on linux2 type "help", "copyright", "credits" or "license" more information.  $ sudo python  python 2.7.6 (default, mar 22 2014, 22:59:56)  [gcc 4.8.2] on linux2 type "help", "copyright", "credits" or "license" more information. 

same results using default bash terminal (ubuntu linux 14.04) , using canopy command line (canopy 1.5.2).

i reinstalled canopy root (i.e. re-ran shell script root) , same problem still occurs.

is there easy way run canopy root? not trying distribute number of users on system run python script on files need root permissions.

it sounds sudo not using current path settings locate executable run. iirc configuration option sudo, whether use limited default path or not.

an easy way work around specify full path python excutable want execute. example, if you've activated canopy virtual environment, can this:

$ sudo $virtual_env/bin/python


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -